我正在尝试通过使用 cloudwatch 警报使用 AWS route53 healthcheck 实现故障转移
我添加了以下主要和次要 A 记录(记录集)
Name = www.example.com (Primary and secondary has same name)
Type = A- Records (Primary and secondary has same name)
TTL = 60Sec (Primary and secondary has same name, recommended by AWS)
Value = IP of primary and secondary servers
Routing policy = Failover
Failover Record Type = Select Primary for Primary/ Select Secondary for secondary
Health Check to Associate = I have only associate health check with Primary A-ecord(recordset)
健康检查设置
IP = Ip address
Host name = www2
URL = /abc/
Protocol = HTTP
String = abc
CloudWatch 警报设置
Whenever = Maximum of Health Check Status
IS <= 0
For at Least = 2
Consecutive period of = 5 minutes
默认情况下,AWS 需要 3 分钟进行故障转移,但我已经配置了上述警报设置,以便故障转移需要 10 分钟,但它仍然在 3 分钟前转移到辅助站点。
以下是aws文档
谢谢穆达萨