For this benchmark we use Sysbench utility and the server with the following configuration:
Operating System: Debian 9;
CPU: 2 cores;
RAM: 2GB;
MySQL version: 5.7
Benchmark was conducted with the following stages:
- Prepare database for benchmark using the following command:
sysbench --db-driver=mysql --mysql-user=root --mysql-password='root' --mysql-db=test
--mysql_storage_engine=innodb --table_size=10000000 --tables=2 --threads=2 /usr/share/sysbench/oltp_read_write.lua prepare - Launch test1 (read-only) using the following command:
sysbench --db-driver=mysql --mysql-user=user --mysql-password='password' --mysql-db=test --mysql_storage_engine=innodb --table_size=10000000 --tables=2 --threads=2 --time=60 /usr/share/sysbench/oltp_read_only.lua run - Launch test2 (read/write) using the following command:
sysbench --db-driver=mysql --mysql-user=user --mysql-password='password' --mysql-db=test --mysql_storage_engine=innodb --table_size=10000000 --tables=2 --threads=2 --time=60 /usr/share/sysbench/oltp_read_write.lua run - Launch Releem Agent and apply recommended MySQL configuration.
- Launch test1 (read-only) the same as in stage 3.
- Launch test2 (read/write) the same as in stage 4..
Below you could see the benchmark results for two MySQL configurations and performance improvments.