make local_benchmark port configurable

This commit is contained in:
Andy Arthur
2022-06-04 17:28:36 -07:00
parent 30e68ce04f
commit c7bd375e7b
+6 -1
View File
@@ -5,6 +5,7 @@ set -o pipefail
SYSBENCH_TEST="oltp_point_select"
WORKING_DIR=`mktemp -d`
PPROF=0
PORT=3366
# parse options
# superuser.com/questions/186272/
@@ -61,7 +62,7 @@ user:
listener:
host: "0.0.0.0"
port: 3306
port: $PORT
max_connections: 128
read_timeout_millis: 28800000
write_timeout_millis: 28800000
@@ -87,7 +88,9 @@ echo "benchmark $SYSBENCH_TEST bootstrapping at $WORKING_DIR"
sleep 1
sysbench \
--db-driver="mysql" \
--mysql-host="0.0.0.0" \
--mysql-port="$PORT" \
--mysql-user="user" \
--mysql-password="pass" \
"$SYSBENCH_TEST" prepare
@@ -109,7 +112,9 @@ sleep 1
echo "benchmark $SYSBENCH_TEST starting at $WORKING_DIR"
sysbench \
--db-driver="mysql" \
--mysql-host="0.0.0.0" \
--mysql-port="$PORT" \
--mysql-user="user" \
--mysql-password="pass" \
--db-ps-mode=disable \