ROUTE53 从 ALB 到 ALB 的故障转移不起作用

发布于 2025-01-14 00:35:21 字数 759 浏览 3 评论 0原文

我希望 Route53 从 ALB1 故障转移到 ALB2。

我已经使用 ALB FQDN 设置了 DNS 托管区域,为 ALB1 设置了别名记录,根据使用 ALB1 端点 FQDN 的运行状况检查设置了故障转移路由策略,还为 ALB2 设置了别名记录作为辅助记录。

每个 ALB 都有一个目标组,由两个 ec2 运行简单的 apache 网站。

ALB1 有两个 ec2,我尝试关闭它们,和/或打开 httpd,以模拟失败的运行状况检查,每次发生这种情况时,我都会收到错误的网关错误消息。它似乎不想故障转移到 ALB2。

托管区域记录和主要别名记录托管区域记录和辅助别名记录route53 健康状况check

我做错了什么/不正确或不明白什么?我的目标是模拟故障转移。

请指教。

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.

hosted zone records and primary alias record
hosted zone records and secondary alias record
route53 health check

What am I doing wrong/incorrectly or don't understand? My goal is to simulate a failover.

Please advise.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

树深时见影 2025-01-21 00:35:21

您需要拥有自己的域。您无法重新定义 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文