【正文】
TPS Barracuda Load Balancer 七層負載均衡 ? 提供兩種均衡算法 ( kernelbased) 權重輪循算法 權重最小連接數(shù) - 考慮分配的權重,當前連接數(shù)等因素,通過相應的算法來有效地分配流量 169。2022 博威特網絡技術(上海)有限公司。版權所有,不得轉載。 Supposing there is a server set S = {S0, S1, ..., Sn1}, W(Si) is the weight of server Si。 C(Si) is the current connection number of server Si。 CSUM = ΣC(Si) (i=0, 1, .. , n1) is the sum of current connection numbers。 The new connection is assigned to the server j, in which (C(Sm) / CSUM)/ W(Sm) = min { (C(Si) / CSUM) / W(Si)} (i=0, 1, . , n1), for (m = 0。 m n。 m++) { if (W(Sm) 0) { for (i = m+1。 i n。 i++) { if (C(Sm)*W(Si) C(Si)*W(Sm)) m = i。 } return Sm。 } } return NULL。 while (true) { i = (i + 1) mod n。 if (i == 0) { cw = cw gcd(S)。 if (cw = 0) { cw = max(S)。 if (cw == 0) return NULL。 } } if (W(Si) = cw) return Si。 } 七層負載均衡 ? 動態(tài)權重調整 SNMP CPU 配置后臺真實服