【发布时间】:2014-03-16 16:14:13
【问题描述】:
我正在尝试使用 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
谢谢 穆达萨
【问题讨论】:
标签: amazon-web-services amazon-route53 failover amazon-cloudwatch