All Products
Search
Document Center

Database Autonomy Service:Traffic playback and stress testing

Last Updated:Dec 13, 2025

Database Autonomy Service (DAS) provides a traffic playback and stress testing feature. This feature helps you determine whether you need to scale out your instance type to effectively handle peaks in service traffic.

Scenarios

  • Determining whether the current database instance type needs to be scaled out to handle upcoming short-term peaks in service traffic.

  • Verifying the effects of a database schema evolution, especially an index change, in a real-world scenario. This reduces the risk of failures after the changes are published.

  • Reproducing a failure scenario on a cloned database to identify the cause. This is useful if the cause of a failure cannot be determined when it occurs.

Feature architecture

The feature architecture for traffic playback and stress testing is shown in the following figure:s

  • Source database: The database from which traffic is captured. This database may be preparing for sales promotions or business changes, or it may have already experienced a failure.

  • Target database: A clone of the source database with the same table schema and data. The captured traffic from the source database is replayed on this database.

Feature introduction

Traditional stress testing solutions often use tools such as sysbench and TPCC. In a given scenario, these tools vary data write and read speeds to measure the effect on performance. They automate repetitive tasks such as data generation, testing, and reporting. However, the SQL used by these tools is very different from real service traffic. As a result, the test results cannot accurately reflect how an instance's performance and stability will change in a real-world scenario.

The traffic playback and stress testing feature in DAS captures real service traffic. It dynamically replicates and amplifies the pressure on the production system. This provides more objective and valuable results to help with O&M decisions. The architecture is not a simple two-point model that consists of a client and a test object. Instead, it uses a three-point architecture: production database, stress testing client, and test object. This architecture captures the pressure on the production database and then realistically simulates that pressure on the test object for a specific period. The traffic can also be replayed at different speeds.

Compared to traditional stress testing solutions, traffic playback and stress testing in DAS has the following advantages:

  • Low-payload capture of real service traffic.

  • Support for write traffic playback and stress testing.

  • Ensures that the order of transactions is preserved.

  • Ready to use out of the box.

Prerequisites

  • Supported source databases:

    • RDS MySQL

    • PolarDB for MySQL

      Note

      PolarDB for MySQL Enterprise Edition single-node instances are not supported.

  • Supported destination database instances:

    • RDS MySQL.

    • PolarDB for MySQL.

    • PolarDB-X 2.0.

  • The source and destination database instances are connected to DAS. For more information, see Connect an Alibaba Cloud database instance to DAS.

  • DAS Enterprise Edition V1 or later is enabled for the source database instance, and the SQL Explorer feature is enabled.

  • DAS Enterprise Edition V1 or later is enabled for the destination database instance, and the SQL Explorer feature is enabled. The storage duration for log indexes is 7 days.