我正在尝试使用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文件
Monitoring Health Checks Using CloudWatch
由于 Mudasar
答案 0 :(得分:1)
我在AWS表单上提出了相同的问题,以下是答案。
As far as I know, the alarms can not be used to control Route 53 failover. The health check interval, number of failures required to trigger failover, and all that is currently not configurable. You could probably use a higher TTL for the primary record to delay the failover for some users, though.