我们在AWS网络负载均衡器后面有几台服务器。 用来平衡流量的算法是“轮循”,描述如下: “对于网络负载平衡器,接收连接的负载平衡器节点使用以下过程:
Selects a target from the target group for the default rule using a flow hash algorithm. It bases the algorithm on:
The protocol
The source IP address and source port
The destination IP address and destination port
The TCP sequence number
Routes each individual TCP connection to a single target for the life of the connection.
The TCP connections from a client have different source ports and sequence numbers, and can be routed to different targets."
由于连接的持久性,服务器负载可能不平衡,并可能导致问题。
如何配置网络负载平衡器以路由负载较小的服务器上的新连接?