Use ALB multi-cluster gateways of ACK One to implement geo-disaster recovery
Use ACK One ALB multi-cluster gateways for geo-disaster recovery against region-level disasters such as floods and earthquakes; expect higher latency, cost, and maintenance than single-region deployments.
How it works
This solution uses an ALB multi-cluster gateway for in-flight routing and Global Traffic Manager (GTM) for DNS-level failover as a last resort.
Region 1 hosts ACK Cluster 1, the ACK One Fleet instance, and the ALB multi-cluster gateway. Region 2 hosts ACK Cluster 2 with an ALB Ingress controller; the controller creates ALB 2 as a cold backup.
The ACK One Fleet instance routes traffic between ACK Cluster 1 and ACK Cluster 2 by request headers or QUIC 0-RTT, so the clusters back up each other.
The clusters connect over CEN or VPC peering, with cross-region traffic on Express Connect. Data sync relies on ApsaraDB RDS and middleware.
Traffic switching paths
Switching paths depend on the failure type:
| Failure scenario | Switching mechanism | DNS change required |
|---|---|---|
| Cluster or service errors in Region 1, or geological disasters in Region 2 | ALB multi-cluster gateway automatically switches to the healthy cluster | No |
| Geological disasters or ALB errors in Region 1 | GTM switches traffic to ALB 2 in Region 2 by health check | Yes — client DNS cache may extend downtime |
Benefits
-
Flexible traffic routing: Content-based routing and health checks let the ALB multi-cluster gateway fail over faster and more precisely than DNS-only solutions.
-
Unified control plane: The ACK One Fleet instance manages Ingress for both clusters from one point, simplifying rollout and maintenance.
-
Fast in-path failover: When the ALB multi-cluster gateway handles failover (no DNS switch), failover completes in seconds, unaffected by client DNS cache.
Use cases
Use this solution when:
-
Your primary region lacks resources and you need cross-region high availability, such as GPU shortages during AI peaks.
-
Your workloads tolerate added latency but need centralized multi-cluster traffic management.
Prerequisites
You need:
-
A purchased GTM instance
-
Fleet management enabled
-
Fleet instance kubeconfig from the ACK One console, with kubectl connected to the Fleet instance
Step 1: Plan the cluster network and configure cross-region communication
-
Plan the network:
-
Deploy ACK Cluster 1 and ACK Cluster 2 in different regions with non-overlapping node and pod CIDR blocks.
-
Deploy the ACK One Fleet instance and ACK Cluster 1 in the same region and VPC.
-
Connect the VPCs in Region 1 and Region 2 per Network connectivity. For CEN, see Manage inter-region connections.
-
After connecting the VPCs, configure security groups on both clusters to allow inbound traffic from the ALB multi-cluster gateway VPC. See Configure security groups for clusters.
See Network design for Fleet management for an end-to-end network design.
-
-
Associate both clusters with the ACK One Fleet instance. See Manage associated clusters.
Step 2: Configure the ALB multi-cluster gateway
See Build a zone-disaster recovery system for a complete walkthrough.
-
Distribute your application to both clusters with GitOps or application distribution to keep state consistent across clusters.
-
On the Fleet instance, create an AlbConfig for the ALB multi-cluster gateway and add both clusters.
-
Create routing rules and Ingresses on the Fleet instance. The example below sends 20% of traffic to Cluster 1 and 80% to Cluster 2. See Traffic management in different scenarios and Configure Ingresses for more options.
apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: alb.ingress.kubernetes.io/listen-ports: | [{"HTTP": 8001}] alb.ingress.kubernetes.io/cluster-weight.${cluster1-id}: "20" alb.ingress.kubernetes.io/cluster-weight.${cluster2-id}: "80" name: web-demo namespace: gateway-demo spec: ingressClassName: alb rules: - host: alb.ingress.alibaba.com http: paths: - path: /svc1 pathType: Prefix backend: service: name: service1 port: number: 80
Step 3: Back up Ingresses regularly
Back up Ingresses and AlbConfigs in the ACK One Fleet instance in Region 1 on a regular schedule. If Region 1 fails, the backup Ingresses sync to ACK Cluster 2 so ALB 2 can route traffic to backend services there.
For example, store backups in an Object Storage Service (OSS) bucket in Region 2.
Step 4: Configure primary/secondary disaster recovery with GTM
After Steps 1–3, the ALB multi-cluster gateway handles failover when cluster or service errors occur in either region. You can configure this GTM step later, when Region 1 fails. To protect against geological disasters or ALB failures in Region 1 — when the gateway itself is unavailable — configure GTM as an additional failover layer.
-
In ACK Cluster 2, use an ALB Ingress to create an ALB instance in Region 2. See Create an AlbConfig.
-
In GTM, specify the IP address of the ALB multi-cluster gateway in Region 1 and the domain name of ALB 2 in Region 2 in primary/secondary mode. GTM switches traffic to Region 2 when Region 1 becomes unhealthy. See Use GTM to implement primary/secondary disaster recovery.
When GTM switches traffic, client DNS cache may prolong service interruption.