Parameter | Description |
db-driver | Database engine. |
mysql-host | Connection address of a TDSQL-C for MySQL instance. |
mysql-port | Connection port of a TDSQL-C for MySQL instance. |
mysql-user | Account of a TDSQL-C for MySQL instance. |
mysql-password | Password for the account of a TDSQL-C for MySQL instance. |
mysql-db | Database name of a TDSQL-C for MySQL instance. |
table_size | Size of the test table. |
tables | Number of test tables. |
events | Number of test requests. |
time | Test time. |
threads | Number of test threads. |
percentile | Percentile of requests to be collected. The default value is 95%, which means 95% requests are processed within the specified response time. |
report-interval | Interval (N seconds) of test progress report output. 0 indicates that the output of the test progress report is disabled, and only the final report result is output. |
skip-trx | Whether to skip a transaction. 1: skip. 0: do not skip. |
yum install gcc gcc-c++ autoconf automake make libtool bzr mysql-devel git mysqlgit clone https://github.com/akopytov/sysbench.git##Download Sysbench from Git.cd sysbench##Open the Sysbench directory.git checkout 1.0.20##Switch to sysbench 1.0.20../autogen.sh##Run autogen.sh../configure --prefix=/usr --mandir=/usr/share/manmake##Compile.make install
sudo sh -c 'for x in /sys/class/net/eth0/queues/rx-*; do echo ffffffff>$x/rps_cpus; done'sudo sh -c "echo 32768 > /proc/sys/net/core/rps_sock_flow_entries"sudo sh -c "echo 4096 > /sys/class/net/eth0/queues/rx-0/rps_flow_cnt"sudo sh -c "echo 4096 > /sys/class/net/eth0/queues/rx-1/rps_flow_cnt"
Feedback