Upgrade a single-instance deployment to a multi-zone architecture with CLB, ECS, and ApsaraDB RDS for higher availability and scalability.
Benefits
A high-availability architecture combines load balancing, image-based replication, and managed databases to eliminate single points of failure.
A multi-zone CLB instance distributes traffic across multiple ECS instances, increasing application throughput and eliminating single points of failure. Multi-zone deployment enhances disaster recovery.
Use custom images to create identical ECS instances and add them to the CLB backend server group. CLB supports Layer-4 and Layer-7 listeners with algorithms such as round robin, weighted round robin, and weighted least connections to allocate compute resources across backend ECS instances.
ApsaraDB RDS instances are optimized for high-concurrency scenarios with features such as thread pooling, parallel replication, and hidden primary keys. CloudDBA provides real-time performance metrics for instance usage, hardware usage, and slow SQL queries, along with optimization suggestions.
Procedure
To upgrade a single-instance deployment to a multi-zone high-availability architecture, use ECS, Elastic IP Address (EIP), CLB, and ApsaraDB RDS as follows.
Use a custom image to create identical ECS instances in different zones. See Copy ECS instances.
Create a CLB instance and add the ECS instances from different zones to the backend server group. See Configure a CLB instance.
Use Data Transmission Service (DTS) to migrate a self-managed database from an ECS instance to an RDS instance without service interruption. Data is automatically backed up during migration. See Migrate a self-managed database to an ApsaraDB RDS High-availability Edition instance.