- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for AllWeightsEqual (0.18 sec)
-
pkg/test/loadbalancersim/loadbalancer/leastrequest.go
if len(s.Connections) == 0 { panic("attempting to create load balancer with zero connections") } conn := newLBConnection("LeastRequestLB", s.Connections) if conn.AllWeightsEqual() { return newUnweightedLeastRequest(conn) } return newWeightedLeastRequest(conn, s.ActiveRequestBias) } type unweightedLeastRequest struct { *weightedConnections r *rand.Rand }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 14 20:23:34 UTC 2022 - 3.4K bytes - Viewed (0)