Created
November 10, 2017 21:14
-
-
Save dotmanila/788ab066e55a1771c5ce350bfa08b21a to your computer and use it in GitHub Desktop.
Run 3 basic sysbench tests on Percona Server sandbox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PREFIX=$1 | |
time sysbench --db-driver=mysql --mysql-user=msandbox --mysql-password=msandbox \ | |
--mysql-db=test --mysql-host=127.0.0.1 --mysql-port=57190 --tables=8 \ | |
--table-size=20000000 --auto-inc=off --threads=8 --time=0 \ | |
--rand-type=pareto oltp_read_only cleanup | |
time sysbench --db-driver=mysql --mysql-user=msandbox --mysql-password=msandbox \ | |
--mysql-db=test --mysql-host=127.0.0.1 --mysql-port=57190 --tables=8 \ | |
--table-size=20000000 --auto-inc=off --threads=8 --time=0 \ | |
--rand-type=pareto oltp_read_only prepare | |
sleep 900 | |
time sysbench --db-driver=mysql --mysql-user=msandbox --mysql-password=msandbox \ | |
--mysql-db=test --mysql-host=127.0.0.1 --mysql-port=57190 --tables=8 \ | |
--table-size=20000000 --auto-inc=off --threads=8 --time=7200 \ | |
--rand-type=pareto --report-interval=1 oltp_read_write run 2>&1 | tee zfs-run-${PREFIX}-read-write.txt | |
sleep 900 | |
time sysbench --db-driver=mysql --mysql-user=msandbox --mysql-password=msandbox \ | |
--mysql-db=test --mysql-host=127.0.0.1 --mysql-port=57190 --tables=8 \ | |
--table-size=20000000 --auto-inc=off --threads=8 --time=7200 \ | |
--rand-type=pareto --report-interval=1 oltp_update_index run 2>&1 | tee zfs-run-${PREFIX}-update-index.txt | |
sleep 900 | |
time sysbench --db-driver=mysql --mysql-user=msandbox --mysql-password=msandbox \ | |
--mysql-db=test --mysql-host=127.0.0.1 --mysql-port=57190 --tables=8 \ | |
--table-size=20000000 --auto-inc=off --threads=8 --time=7200 \ | |
--rand-type=pareto --report-interval=1 oltp_read_only run 2>&1 | tee zfs-run-${PREFIX}-read-only.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment