You need to enable JavaScript to run this app.
RDS for MySQL

RDS for MySQL

Copy page
Download PDF
Test methods
Test methods
Copy page
Download PDF
Test methods
This topic describes the test scenarios and methods used to stress test RDS for MySQL.​
Test scenario​
This test includes the following two scenarios:​
  • In-memory: Suitable for small data volumes. All data can be loaded into the Buffer Pool, and data access primarily hits the memory cache.​
  • I/O-bound: Suitable for large data volumes. Only frequently accessed data is loaded into the Buffer Pool for read and write operations. Disk read/write and Buffer Pool updates occur during pressure testing.​
Test steps​
  • Replace the following parameters with the actual values of your MySQL instance:​
  • mysql-db: database.​
  • mysql-host: connection address.​
  • mysql-port: database port.​
  • mysql-user: database account.​
  • mysql-password: database account password.​
  • Replace the following parameters with actual values based on the test scenario:​
  • table_size: the number of rows in the test table.​
  • tables: the number of test tables.​
  • time: test time.​
  • threads: the number of concurrent threads.​
  1. Importing data​
  • ​
    nohup sysbench --db-driver=mysql --mysql-host=XXX --mysql-port=XXX --mysql-user=XXX --mysql-password=XXX --mysql-db=XXX --table_size=XXX --tables=XXX --time=XXX --threads=XXX oltp_read_write prepare​
    ​
  1. Run test​
  • ​
    nohup sysbench --db-driver=mysql --mysql-host=XXX --mysql-port=XXX --mysql-user=XXX --mysql-password=XXX --mysql-db=XXX --table_size=XXX --tables=XXX --time=XXX --threads=XXX oltp_read_write run​
    ​
  1. Clear data​
  • ​
    nohup sysbench --db-driver=mysql --mysql-host=XXX --mysql-port=XXX --mysql-user=XXX --mysql-password=XXX --mysql-db=XXX --table_size=XXX --tables=XXX --time=XXX --threads=XXX oltp_read_write cleanup​
    ​
  • ​
Last updated: 2026.07.31 18:44:25