mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-21 02:57:46 -05:00
make local_benchmark port configurable
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user