Database Autonomy Service (DAS) provides the intelligent stress testing feature. This feature helps you check whether you need to scale up or scale out your database instance to handle workloads during peak hours. This topic describes how to create a stress testing task.
Prerequisites
- The source database instance must be an ApsaraDB RDS for MySQL instance of the High-Availability Edition or the Enterprise Edition.
- The destination database instance must be an ApsaraDB RDS for MySQL instance.
- The source database instance and the destination database instance are connected to DAS. For information about how to connect database instances to DAS, see Connect an Alibaba Cloud database instance to DAS.
- DAS Professional Edition is activated for the source database instance and the destination database instance. For more information, see DAS Professional Edition.
Additional considerations
- To reduce network latency, you must deploy the stress testing client and the destination
database instance in the same region.
Note We recommend that you deploy the stress testing client and the destination database instance in the same virtual private cloud (VPC).
- Before you perform a stress test, you must check the connection between the stress testing client and the destination database instance. Make sure that traffic can be sent from the client to the destination database instance.
Pricing
After you create a stress testing task, you are charged based on the following rules:
- If you use the Restore by Backup method to migrate data, the system automatically creates a pay-as-you-go ApsaraDB RDS for MySQL instance as the destination database instance. For information about the pricing, see ApsaraDB RDS pricing.
- If you select DAS Automatic Purchase and Deployment in the Advanced Settings section, the system automatically creates a pay-as-you-go Elastic Compute Service (ECS) instance. The stress testing client is deployed on the ECS instance. The specifications of the ECS instance are selected based on the queries per second (QPS) of the source database instance and the specified playback rate. For information about the pricing of ECS instances, see ECS pricing.
Note
- Make sure that DAS Professional Edition is activated for the source database instance. For more information, see Pricing of DAS Professional Edition.
- To reduce costs, we recommend that you delete the pay-as-you-go ECS instance and destination database instance that are created by the system after the stress testing task is complete.
Create a stress testing task
View stress testing results
What to do next
- If you do not need to perform stress testing again, on the Intelligent Stress Testing Details page you can release the ECS instance that is created to run the stress testing task.
- To reduce extra costs, delete the destination database instance and the ECS instance that are created to run the stress testing task.
- If the SQL Explorer and audit feature is enabled for the source database instance, you can disable the feature after the stress testing task is complete.