Free trial of PolarDB-X seamless switchover

Updated at:

This topic describes how to experience the seamless switchover capability of PolarDB-X for free.

Background

PolarDB-X uses an innovative compute-storage separation architecture to achieve full-stack seamless switchover at three levels: compute nodes (CNs), data nodes (DNs), and global metadata service (GMS) nodes. This capability is enabled by the coordination between compute nodes and the management system. It does not depend on specific hardware and is not limited by availability zones. Even in cross-availability zone switchover scenarios, it provides fast switching speeds and a completely error-free application experience. The advantages of seamless switchover include:

  • Strong data consistency: No data loss during switchover, with RPO=0.

  • Zero session interruption: Eligible transactions are not affected by application errors during planned maintenance that involves high availability switchover.

  • Automatic traffic migration: Application traffic is automatically rerouted to new nodes, making the process fully transparent to your applications.

  • Cross-machine migration: Both compute nodes and data nodes support seamless migration across machines and availability zones.

Alibaba Cloud provides a database solution experience center that offers a free, real PolarDB-X instance environment and out-of-the-box testing methods. You can quickly experience the seamless switchover feature of PolarDB-X online.

Impact

This trial does not involve production environment deployment and will not affect your business.

Billing

During this trial, the resources used do not belong to your account, so no charges will be incurred. You can use this trial with confidence.

Trial overview

Environment

In this free trial, Alibaba Cloud provides a pre-configured environment for you to use. The environment details are as follows:

  • Cluster: Two PolarDB-X instances are provided as stress test targets. One instance uses seamless switchover, and the other uses standard switchover, allowing you to observe and compare the switchover effects. Both instances have the same specifications:

    • Instance version: polardb-2.5.0_5.4.20-20250210_xcluster8.4.20-20250121

      Note

      Instance version naming rules, see Version notes.

    • Compute node specifications: 4 cores, 16 GB

    • Number of compute nodes: 2

    • Data node specifications: 4 cores, 16 GB

    • Number of data nodes: 2

    • Compatibility: MySQL 8.0

    • Instance family: General-purpose

  • A stress testing machine with the Sysbench tool installed is provided. It runs the same stress testing task on both PolarDB-X instances. The stress test details are as follows:

    • Test scenario: oltp_read_write, which tests the read and write performance of the PolarDB-X instance.

    • Stress test table size: --table_size=10000000, --tables=1, which specifies 1 table with 10 million rows per table.

    • Concurrent threads: --threads=200, which specifies 200 concurrent threads.

    • Test duration: --time=180, which specifies 3 minutes.

Key metrics

TPS (Transactions Per Second): The number of transactions that the database executes per second, based on the count of successful COMMIT operations.

Procedure

  1. Go to the Solution Experience Center and open the Seamless Switchover - PolarDB High Availability trial page:

    At the top of the page, you can select the PolarDB for MySQL or PolarDB-X product tab. The left side of the page displays the feature introduction and architecture preview (including the topology between the ECS stress testing machine and the PolarDB instance), while the right side shows the task list and trial statistics.

  2. Click the Create Free Trial Task button at the bottom of the page. In the dialog box that appears, click OK to start the Sysbench stress test task.

    Note

    The stress test will run for three minutes. After the test starts, click Start Switchover Test in the task details to compare the results.

  3. After a moment, click image.png to refresh the task list. You can see that the trial task you created has started.

    The task list displays the Request UID, Start Time, Expected End Time, and other information for the task. Click View Details in the Actions column to go to the task details page.

  4. Click View Details to open the real-time stress test monitoring page. You can see that the stress test has started, and the TPS levels of the two PolarDB-X instances under the same stress test task are dynamically consistent.image

  5. Click the Start Switchover Test button in the upper-right corner to initiate a switchover for both PolarDB-X instances simultaneously.

    You will quickly observe the following:

    • For the PolarDB-X instance with seamless switchover enabled, the TPS shows no significant change and no request errors occur. The performance remains basically consistent with the pre-switchover level.

    • For the PolarDB-X instance with standard switchover, the TPS gradually drops to zero and then recovers. The entire process takes nearly 10 seconds to return to normal levels. Additionally, request errors occur during the switchover.

    imageimage

Related information