To enable global users to access their businesses worldwide, enterprises generally deploy at least two sets of service access sites inside and outside China, but the backend data service just uses one set of service access site. Through DNS, smart traffic routing is performed to route the access requests of users in different regions to different access sites. In case of fault or disaster, the access sites create backups for each other, ensuring high availability of the service.
The principle is illustrated below:
Step 1: make global settings
Make global settings for a Global Traffic Manager (GTM) instance according to the figure below:
Step 2: configure multiple address pools
In a GTM instance, configure the address pools inside and outside China according to the figure below. In this example, four address pools are used:
China North and
China South in Mainland China, and
Hong Kong and
Singapore outside China, as shown below:
Step 3: configure health check
In a GTM instance, add health check for each address pool. NOTE: To ensure the health check quality, select overseas monitoring sites for health check of the address pools outside China.
Step 4: configure an access policy
In a GTM instance, complete the smart access configuration according to the figure below. This routes the access traffic of different users to different address pools and enables Failover between address pools for fault recovery.
Access traffic from users in China South is routed to the address pool in China South, while the address pool in China North is used as a backup address pool. Access traffic from users in other regions inside China is routed to the address pool in China North, while the address pool in China South is used as a backup address pool.
Access traffic from users in Asian countries other than China is routed to the address pool in Hong Kong, while the address pool in Singapore is used as the backup address pool. Access traffic from users in other places outside China is routed to the address pool in Singapore, while the address pool in Hong Kong is used as the backup address pool.
Step 5: configure CNAME access
In the domain name resolution configuration area, complete the CNAME access configuration for the application service according to the figure below, so that the application service can access the GTM instance.