我在 Amazon EC2 中的 2 个区域(美国西部和欧盟伦敦)各有 1 个实例。我希望实现以下目标:
根据区域分配流量:
例如:如果请求来自美国,则使用美国地区;如果请求来自英国,则使用欧盟地区
备份:
如果发生故障,请求将被定向到工作实例
我曾尝试搜索此类场景,但只找到其中一种,而没有找到能够为这两种场景提供解决方案的东西。
经典负载平衡:
- If US instance fails, the requests are automatically directed to EU instance.
- But, when both the instances are running, the requests will be balanced and divided (irrespective of where the request originated from)
应用程序负载平衡:
- I could set different URLs for US and EU and use application load balancing to direct requests to the instance of the respective region.
- But if US instance fails, the requests won't be directed to EU instance.
亚马逊 53 号公路: