ROUTE53 从 ALB 到 ALB 的故障转移不起作用
我希望 Route53 从 ALB1 故障转移到 ALB2。
我已经使用 ALB FQDN 设置了 DNS 托管区域,为 ALB1 设置了别名记录,根据使用 ALB1 端点 FQDN 的运行状况检查设置了故障转移路由策略,还为 ALB2 设置了别名记录作为辅助记录。
每个 ALB 都有一个目标组,由两个 ec2 运行简单的 apache 网站。
ALB1 有两个 ec2,我尝试关闭它们,和/或打开 httpd,以模拟失败的运行状况检查,每次发生这种情况时,我都会收到错误的网关错误消息。它似乎不想故障转移到 ALB2。
我做错了什么/不正确或不明白什么?我的目标是模拟故障转移。
请指教。
I want route53 to failover from ALB1 to ALB2.
I've set up a DNS hosted zone, using ALB FQDN, set up Alias record for ALB1, set failover routing policy, based on a health check using ALB1 endpoint FQDN, also set up Alias record for ALB2 as secondary.
Each ALB has a target group of two ec2 running simple apache website.
ALB1 has two ec2, I tried shutting them, and/or turning httpd, to simulate failed health check and each time this happens, I get bad gateway error message. It doesn't seem to want to failover to ALB2.
What am I doing wrong/incorrectly or don't understand? My goal is to simulate a failover.
Please advise.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要拥有自己的域。您无法重新定义 ALB 提供给您的 AWS 拥有的域。然后,您为自己的域(例如
myapp.org
)创建 R53 故障转移记录。You need to have your own domain. You can't re-define AWS owned domain that is provided to you by your ALB. Then you create the R53 fail-over records for your own domain, e.g.
myapp.org
.