Overview
Global Traffic Manager (GTM) uses TCP health checks to monitor target IP addresses for network reachability, port availability, and latency. When an IP address or port becomes unhealthy, GTM automatically stops routing traffic to it and resumes when it recovers.
Procedure
-
Log in to the Alibaba Cloud DNS - Global Traffic Manager console.
-
On the instance list page, find the target instance and click Actions in the Configure column.
-
On the Basic Configuration page, click the Address Pool Configuration tab. Click the + icon next to the target address pool, and then click Add next to Health Check.
-
In the Modify Health Check dialog box, set the health check protocol, health check interval, health check port, timeout, consecutive failures, failure ratio, and monitoring nodes, and click Confirm.
Example: Set health check protocol to TCP, health check interval to 1 minute, health check port to 80, timeout to 5 seconds, consecutive failures to 2, and failure ratio to 50%. For monitoring nodes, select the BGP nodes in China (Zhangjiakou), China (Qingdao), China (Hangzhou), China (Shanghai), China (Hohhot), China (Shenzhen), and China (Beijing).
Parameters
-
Health check protocol
Select TCP. GTM monitors the target IP address for network reachability, port availability, and latency over TCP.
-
Health check interval
The interval between health checks. Default: 1 minute. Ultimate Edition supports a minimum interval of 15 seconds.
-
Health check port
The port to monitor on the target IP address. GTM establishes a TCP connection to this port. A successful connection means the service is healthy; a failed connection means it is unhealthy.
-
Timeout
The maximum wait time for a health check response. If no response is received within this period, the check times out. Valid values: 2, 3, 5, or 10 seconds.
-
Consecutive failures
The number of consecutive failures before GTM marks a service as unhealthy. Prevents false alarms from transient network issues. Valid values: 1, 2, or 3.
-
1: Marks the service as unhealthy after one alert.
-
2: Marks the service as unhealthy after two consecutive alerts.
-
3: Marks the service as unhealthy after three consecutive alerts.
-
Failure ratio
The percentage of monitoring nodes that must report a failure before the service is marked unhealthy. Valid values: 20%, 50%, 80%, and 100%.
-
Monitoring node
The nodes that perform TCP health checks. The following default nodes are available.
|
Node type |
Geographic location |
|
BGP node |
China (Zhangjiakou), China (Qingdao), China (Hangzhou), China (Shanghai), China (Hohhot), China (Shenzhen), China (Beijing) |
|
International node |
China (Hong Kong), Germany, Singapore, California, Malaysia, Japan |
|
Carrier node |
Wuhan China Unicom, Dalian China Unicom, Nanjing China Unicom, Tianjin China Unicom, Qingdao China Telecom, Changsha China Telecom, Xi'an China Telecom, Zhengzhou China Telecom, Shenzhen China Mobile, Dalian China Mobile, Nanjing China Mobile |
When testing with a blackhole filtering policy, select carrier nodes as monitoring nodes if the address pool contains only Alibaba Cloud addresses. Blackhole filtering is an ACL policy that affects internet traffic between Alibaba Cloud and carriers. Intra-Alibaba Cloud traffic stays within the Alibaba Cloud network, making detection from other Alibaba Cloud nodes less effective.