Parameter | Description |
db-driver | Database Engine |
mysql-host | MySQL instance connection address |
mysql-port | MySQL instance connection port |
mysql-user | MySQL instance account |
mysql-password | Password for the MySQL instance account |
mysql-db | MySQL instance database name |
table_size | Table Size |
tables | Number of Tables |
events | Number of Test Requests |
time | Test Time |
threads | Number of Test Threads |
percentile | The percentage to be counted. The default value is 95%, which indicates the execution time of requests in 95% of cases. |
report-interval | Indicates that a test progress report is output every N seconds. A value of 0 disables the output of test progress reports and outputs only the final report result. |
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"
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback