1

我正在尝试通过使用 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文档

AWS dns 故障转移

使用 CloudWatch 监控运行状况检查

谢谢穆达萨

4

1 回答 1

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. 

基于 CloudWatch 指标的 DNS 故障转移

于 2014-02-18T10:28:16.073 回答