AWS ELB - 多 VPC 负载平衡 [英] AWS ELB - multi VPC load balancing

查看:38
本文介绍了AWS ELB - 多 VPC 负载平衡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从事一个项目,其中一项任务是为远程 VPC 中的实例提供 AWS ELB 服务.AWS ELB 位于 VPC A 中,实例位于 VPC B 中.我的初始响应 - 不,因为 ELB 是负载均衡器,而不是路由器.文档和使用 AWS ELB 表明不支持或可以配置远程 VPC 中子网/实例的负载平衡.

I'm working on a project where one of the tasks is to provide AWS ELB services for instances in a remote VPC. The AWS ELB is located in VPC A and the instances are located in VPC B. My initial response- No, because the ELB is a load balancer, not a router. Documentation and working with the AWS ELB indicate that load balancing to subnets/instances in a remote VPC is not supported or can be configured.

我正在检查是否有人尝试过这种情况以取得任何形式的成功.

I'm checking to see if anyone tried this scenario to any form of success.

非常感谢您的任何回复或反馈.

Many thanks for any response or feedback.

推荐答案

ELB 只能附加它可以访问的实例.

An ELB can only attach instances that are reachable by it.

当您将 ELB 放置在 VPC 中时,它会被限制在那里.VPC 是独立的,并且可以具有重叠的子网范围.

When you place an ELB in a VPC it's constrained there. VPC's are independent and can have overlapping subnet ranges.

即,如果您的 ELB 位于具有 10.0.0.0/8 的 VPC A 中,而您有另一个具有 10.0.0.0/8 的 VPC B,则无法区分路线.如果两个 VPC 中都有一个具有该 IP 的实例,则跨越该边界并将数据发送到 10.0.0.8 将是危险的.它没有办法解决这个问题.如果您想将数据从 VPC 发送到 VPC,您需要一个 VPC 对等连接和处理该连接的路由.然后您将发送到 VPC A 中的代理,该代理将其发送到 ELB 或 VPC B

Ie if your ELB is in VPC A with 10.0.0.0/8 and you had another VPC B with 10.0.0.0/8 there's no way it could differentiate that route. It would be dangerous to cross that boundary and send data say to 10.0.0.8 if there was an instance in both VPC's with that IP. It has no route that can figure that out. If you want to send data from VPC to VPC you'd need a VPC peering connection and routes that handle that. Then you'd send to a proxy in VPC A that sends it to either an ELB or the instance in VPC B

这篇关于AWS ELB - 多 VPC 负载平衡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆