每个目标组的工作方式有何不同?

0

【以下的问题经过翻译处理】 你好,专家们

据我所知,NLB有两种不同的目标组,如下所示:

instance:目标由实例ID指定。 ip:目标由IP地址指定。

Q1)当目标组为instance时,后端实例会与客户端IP地址建立连接吗?

Q2)当目标组为ip时,后端实例会与NLB的私有IP地址建立连接吗?

Q3)如果Q1和Q2是正确的,为什么连接基于目标组而不同?

profile picture
EXPERT
asked 5 months ago4 views
1 Answer
0

【以下的回答经过翻译处理】 Q1:如果您使用实例ID指定目标,客户端的源IP地址将保留并提供给您的应用程序。 (https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html) Q2:如果您使用IP地址指定目标,源IP地址将是NLB节点的私有IP地址。如果您需要客户端的IP地址,请启用代理协议(Proxy Protocol),并从代理协议标头中获取客户端IP地址。 (https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html) Q3:不同类型的请求使用不同的目标组。

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions