Parameter | Description |
db-driver | Database engine. |
mysql-host | TDSQL-C for MySQL connection address of the instance. |
mysql-port | TDSQL-C for MySQL connection port of the instance. |
mysql-user | TDSQL-C for MySQL instance account. |
mysql-password | TDSQL-C for MySQL instance account's corresponding password. |
mysql-db | TDSQL-C for MySQL database name of the 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 | The percentile to be calculated, with a default value of 95%, meaning the execution time for 95% of requests. |
report-interval | It indicates that a report on test progress is output every N seconds; 0 disables the output of the report on test progress and only outputs the result of the final report. |
skip-trx | Whether to skip the 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 Gitcd sysbench## Open the sysbench directorygit checkout 1.0.20## Switch to sysbench version 1.0.20./autogen.sh## Run autogen.sh./configure --prefix=/usr --mandir=/usr/share/manmake## Compilemake 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