All Products
Search
Document Center

ApsaraDB RDS:Test results of ApsaraDB RDS instances that run MySQL 5.7 and use Premium Local SSDs

Last Updated:May 14, 2025

This topic describes the performance test results of ApsaraDB RDS instances that run MySQL 5.7 and use general-purpose instance types.

Note

Test environment

In this stress testing, SysBench is used to test the performance of five RDS instances that use Premium Local SSDs. These RDS instances use different instance types.

  • Instance types: rds.mysql.s1.small, rds.mysql.s2.large, rds.mysql.m1.medium, rds.mysql.c1.xlarge, and rds.mysql.c2.xlarge

  • Instance family: general-purpose instance family

  • RDS edition: RDS High-availability Edition

  • Storage type: Premium Local SSD

Configurations

The performance is significantly affected by the data volume, stress testing duration, and parameter settings. The following configurations are used for this stress testing:

  • Data volume: The data volume and the number of tables on each RDS instance that you want to test are different. Therefore, the test results for some of the RDS instances may be similar.

  • Stress testing duration: The stress testing duration is 20 minutes for all RDS instances.

  • Parameter settings:

    • sync_binlog=1 and innodb_flush_log_at_trx_commit=1: ensure that the data submitted each time is completely written to disks.

    • rpl_semi_sync_master_enabled=ON: enables the semi-synchronous mode for an RDS instance to ensure data consistency between the primary and secondary RDS instances.

    • Performance_schema=OFF: automatically enables Performance Schema for an RDS instance that uses an instance type with a memory size greater than or equal to 64 GB.

      Note

      These parameter settings are contained in the standard parameter template for ApsaraDB RDS for MySQL. If the standard parameter template is applied to all the RDS instances, data consistency is maximized, and the test environment is more similar to the production environment.

Test results

Two types of queries can be used to perform stress testing. You can determine the type of stress testing based on your data volume.

  • Stress testing for cache-based queries: This type of stress testing is suitable for scenarios that involve a small amount of data. You can store all data in the InnoDB buffer pool for access. For more information about how to change the size of the InnoDB buffer pool, see Change the size of the InnoDB buffer pool for an ApsaraDB RDS for MySQL instance.

  • Stress testing for disk I/O-based queries: This type of stress testing is suitable for scenarios that involve a large amount of data. You can store only the most frequently used data in the InnoDB buffer pool for access. During the stress testing, data is read from or written to disks, and the InnoDB buffer pool is updated.

Type 1: Stress testing for cache-based queries

image.png

Instance type

Data volume in a single table

Number of tables

Maximum number of connections

IOPS

Number of sysbench threads

QPS

TPS

1 core, 2 GB

(rds.mysql.s1.small)

3,000,000

1

600

1,000

16

22,427

1,121

2 cores, 4 GB

(rds.mysql.s2.large)

3,000,000

2

1,200

2,000

16

49,984

2,499

4 cores, 16 GB

(rds.mysql.m1.medium)

6,000,000

4

4,000

7,000

32

95,856

4,793

8 cores, 32 GB

(rds.mysql.c1.xlarge)

6,000,000

8

8,000

12,000

32

135,598

6,800

16 cores, 64 GB

(rds.mysql.c2.xlarge)

6,000,000

16

16,000

14,000

64

220,562

11,028

Type 2: Stress testing for disk I/O-based queries

image.png

Instance type

Data volume in a single table

Number of tables

Maximum number of connections

IOPS

Number of sysbench threads

QPS

TPS

1 core, 2 GB

(rds.mysql.s1.small)

16,000,000

1

600

1,000

16

1,208

60

2 cores, 4 GB

(rds.mysql.s2.large)

16,000,000

2

1,200

2,000

16

2,720

136

4 cores, 16 GB

(rds.mysql.m1.medium)

32,000,000

4

4,000

7,000

32

9,499

475

8 cores, 32 GB

(rds.mysql.c1.xlarge)

32,000,000

8

8,000

12,000

32

16,284

814

16 cores, 64 GB

(rds.mysql.c2.xlarge)

32,000,000

16

16,000

14,000

32

18,979

945