Skip to content

Commit

Permalink
Use 3 byte random int as server id
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Oct 9, 2023
1 parent 744bef4 commit d0ed5bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/run_read_only.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ function retry {
}

echo $BASE_NAME
svr_id=$(od -An -N2 -i /dev/urandom | awk '{print $1}')
svr_id=$(od -An -N3 -i /dev/urandom | awk '{print $1}')
svr_id=${svr_id#-}
log "INFO" "server_id = $svr_id"

log "INFO" "Storing default mysqld config into /etc/mysql/my.cnf"
Expand Down

0 comments on commit d0ed5bc

Please sign in to comment.