Can someone explain to me what actually happens in the back-end to the load balancer (v2) for the two scenarios:
有人可以向我解释在两个场景的负载均衡器(v2)的后端实际发生了什么:
-
Applying Inbound NAT rules.
应用入站NAT规则。
-
Applying Load Balancing Rules.
应用负载平衡规则。
2 个解决方案
#1
6
You would use NAT rule when you have 1 backend server or you know which backend server to get to and loadbalancing rule when you want to loadbalance to multiple backend servers.
当您有1个后端服务器或者您想要将负载均衡到多个后端服务器时,您将知道要访问哪个后端服务器和负载平衡规则,您将使用NAT规则。
#2
2
NAT rule must be explicitly attached to a VM (or network interface) to complete the path to the target; whereas Load Balancing rule need not be. In the latter case, a VM is selected (from the back-end address pool or VMs) to complete the path to the target.
必须将NAT规则明确附加到VM(或网络接口)才能完成到目标的路径;而负载平衡规则不一定是。在后一种情况下,选择VM(来自后端地址池或VM)以完成到目标的路径。
#1
6
You would use NAT rule when you have 1 backend server or you know which backend server to get to and loadbalancing rule when you want to loadbalance to multiple backend servers.
当您有1个后端服务器或者您想要将负载均衡到多个后端服务器时,您将知道要访问哪个后端服务器和负载平衡规则,您将使用NAT规则。
#2
2
NAT rule must be explicitly attached to a VM (or network interface) to complete the path to the target; whereas Load Balancing rule need not be. In the latter case, a VM is selected (from the back-end address pool or VMs) to complete the path to the target.
必须将NAT规则明确附加到VM(或网络接口)才能完成到目标的路径;而负载平衡规则不一定是。在后一种情况下,选择VM(来自后端地址池或VM)以完成到目标的路径。