mysql stress testing tool sysbench

Read-only Example 2.1
./bin/sysbench --test = / usr / share / sysbench / tests / include / oltp_legacy / oltp.lua --mysql-host = 192.168.80.134 --mysql-port = 3306 --mysql-user = root --mysql-password = root123 --mysql -db = sbtest --oltp-tables-count = 10 --oltp-table-size = 10000000 --report-interval = 10 --oltp-dist-type = uniform --rand-init = on --max-requests = 0 --oltp-test-mode = nontrx --oltp-nontrx-mode = select --oltp-read-only = on --oltp-skip-trx = on = 120 = 12 is --threads --time
[PREPARE | rUN | Cleanup]
generates data | run tests | Clear data

2.2混合读写
.bin/sysbench --test=/usr/share/sysbench/tests/include/oltp_legacy/oltp.lua --mysql-host=192.168.80.134 --mysql-port=3306 --mysql-user=root --mysql-password=root123 --mysql-db=sbtest --oltp-tables-count=10 --oltp-table-size=500000 --report-interval=10 --rand-init=on --max-requests=0 --oltp-test-mode=nontrx --oltp-nontrx-mode=select --oltp-read-only=off --time=120 --threads=128 prepare
[prepare|run|cleanup]

2.3修改数据只写测试
.bin/sysbench --test=/usr/share/sysbench/tests/include/oltp_legacy/update_index.lua --mysql-host=192.168.80.134 --mysql-port=3306 --mysql-user=root --mysql-password=root123 --mysql-db=sbtest --oltp-tables-count=10 --oltp-table-size=500000 --report-interval=10 --rand-init=on --max-requests=0 --oltp-test-mode=nontrx --oltp-nontrx-mode=select --oltp-read-only=off --time=120 --threads=128 prepare
[prepare|run|cleanup]

Guess you like

Origin www.cnblogs.com/h-gallop/p/11646140.html