ELB用于出站流量吗?
Is ELB used for outbound traffic?
ELB(弹性负载均衡器)可用于使一些计算实例(EC2)位于 public 子网中,public 面向(互联网),通过分配一个 public IP 到 ELB,客户端可以在其中与 ELB 通信。
案例一
public 子网中的 EC2 实例(只有私有 IP),通过 ELB 接收 http 请求。
案例一,EC2实例如何响应客户端?是通过ELB吗?
案例二
public 子网中的 EC2 实例(具有私有 IP 和 public)通过 ELB 接收 http 请求。
here,它表示:"When you receive incoming traffic through the load balancer, the responses will go out the same way."
案例2,EC2实例如何响应客户端? EC2 实例是否直接从您实例的 public IP 地址发送到 Internet?
案例 1
How does EC2 instance respond back to client? Is it via ELB?
是的。通过 ELB 的请求将被转发到 EC2,而 EC2 响应将通过 ELB 返回并转发给客户端。所以,是的,ELB 正在双向发挥作用。
案例 2
In case 2, how does EC2 instance respond back to clients? Does EC2 instance sent directly from the public IP address of your instance out to the Internet?
如果请求来自 ELB,则实例会将其响应发送到 ELB,然后再转发给客户端。换句话说,通过 ELB 发出的请求总是通过 ELB 获得响应:
CLIENT <-> ELB <-> EC2
在引用的 post (link) 中,此人写道:
When you receive incoming traffic through the load balancer, the responses will go out the same way. However, traffic that is originating from your instance will not pass through the load balancer. Instead, it is sent directly from the public IP address of your instance out to the Internet. The ELB is not involved in that scenario.
它谈论的是由您的 EC2 发起(启动)的流量。示例:apt-get update
将获取一堆 HTTP 服务器。此流量不会通过 ELB。如果您没有更改默认 VPC 和路由表,流量将穿过互联网网关 (IGW) 并转到互联网。
ELB(弹性负载均衡器)可用于使一些计算实例(EC2)位于 public 子网中,public 面向(互联网),通过分配一个 public IP 到 ELB,客户端可以在其中与 ELB 通信。
案例一
public 子网中的 EC2 实例(只有私有 IP),通过 ELB 接收 http 请求。
案例一,EC2实例如何响应客户端?是通过ELB吗?
案例二
public 子网中的 EC2 实例(具有私有 IP 和 public)通过 ELB 接收 http 请求。
here,它表示:"When you receive incoming traffic through the load balancer, the responses will go out the same way."
案例2,EC2实例如何响应客户端? EC2 实例是否直接从您实例的 public IP 地址发送到 Internet?
案例 1
How does EC2 instance respond back to client? Is it via ELB?
是的。通过 ELB 的请求将被转发到 EC2,而 EC2 响应将通过 ELB 返回并转发给客户端。所以,是的,ELB 正在双向发挥作用。
案例 2
In case 2, how does EC2 instance respond back to clients? Does EC2 instance sent directly from the public IP address of your instance out to the Internet?
如果请求来自 ELB,则实例会将其响应发送到 ELB,然后再转发给客户端。换句话说,通过 ELB 发出的请求总是通过 ELB 获得响应:
CLIENT <-> ELB <-> EC2
在引用的 post (link) 中,此人写道:
When you receive incoming traffic through the load balancer, the responses will go out the same way. However, traffic that is originating from your instance will not pass through the load balancer. Instead, it is sent directly from the public IP address of your instance out to the Internet. The ELB is not involved in that scenario.
它谈论的是由您的 EC2 发起(启动)的流量。示例:apt-get update
将获取一堆 HTTP 服务器。此流量不会通过 ELB。如果您没有更改默认 VPC 和路由表,流量将穿过互联网网关 (IGW) 并转到互联网。