Scenarios
Global Traffic Manager (GTM) implements global disaster recovery not only in multiple regions and data centers but also in multi-cloud scenarios.
Architecture
GMT can build a disaster recovery architecture in multi-cloud scenarios. In such an architecture, users in different regions can access the nearest data centers. If one data center is down, the access traffic from users can be switched to other data centers that run as expected. This ensures business continuity.
Expected results
Traffic from users in the Chinese mainland is switched to the on-premises data center in the China (Beijing) region.
Traffic from users in the China (Hong Kong) region is switched to the Alibaba Cloud data center in the China (Hong Kong) region.
Traffic from users outside the Chinese mainland is switched to the Huawei Cloud data center in Singapore.
If the on-premises data center is down, traffic is switched to the Alibaba Cloud data center.
If the Huawei Cloud data center is down, traffic is switched to the Alibaba Cloud data center.
If the Alibaba Cloud data center is down, traffic is switched to the Huawei Cloud data center.
Procedure
The following section describes how to achieve nearest access and failover among the on-premises data center, the Alibaba Cloud data center, and the Huawei Cloud data center.
Prepare resources.
Create a GTM instance. You can click here to purchase a GTM instance.
Prepare the following three IP addresses: 192.0.2.0 of the data center in the China (Beijing) region, 192.0.2.1 of the Alibaba Cloud data center in the China (Hong Kong) region, and 192.0.2.2 of the Huawei Cloud data center in Singapore.
Log on to the Alibaba Cloud Domain Name System (DNS) console. In the left-side navigation pane, click Global Traffic Manager. On the page that appears, find the desired instance and click Settings in the Actions column.
Click Advanced Settings. On the page that appears, click the Basic Settings tab and configure the instance based on your business requirements. We recommend that you set the Global TTL Period parameter to 1 Minute.

Create an address pool for each data center and enable the health check feature for the address pools.


Create three access policies.
Select Global > Global for the DNS Request Source parameter, and select the address pool for the data center in the China (Beijing) region as the primary address pool set, and the address pool for the Alibaba Cloud data center in the China (Hong Kong) region as the secondary address pool set. In this way, if users in the Chinese mainland access the data center in the China (Beijing) region and the data center is down, the access traffic is switched to the Alibaba Cloud data center in the China (Hong Kong) region.
Select Asia > Hong Kong (China) for the DNS Request Source parameter, and select the address pool for the Alibaba Cloud data center in the China (Hong Kong) region as the primary address pool set and the address pool for the Huawei Cloud data center in Singapore as the secondary address pool set. In this way, if users in the China (Hong Kong) region access the Alibaba Cloud data center in the China (Hong Kong) region and the Alibaba Cloud data center is down, the access traffic is switched to the Huawei Cloud data center in Singapore.
Select Overseas-Outside mainland China for the DNS Request Source parameter, and select the address pool for the Huawei Cloud data center in Singapore as the primary address pool set and the address pool for the Alibaba Cloud data center in the China (Hong Kong) region as the secondary address pool set. In this way, if users outside the Chinese mainland access the Huawei Cloud data center in Singapore and the Huawei Cloud data center is down, the access traffic is switched to the Alibaba Cloud data center in the China (Hong Kong) region.

Go to the DNS Settings page of the service domain name, and click Add DNS Record. Add a CNAME record for the domain name to point the domain name to the CNAME provided by GTM. This way, the traffic from users can be switched.
