diff --git a/ribbon-loadbalancer/src/main/java/com/netflix/loadbalancer/WeightedResponseTimeRule.java b/ribbon-loadbalancer/src/main/java/com/netflix/loadbalancer/WeightedResponseTimeRule.java index b71cfaf3..d69eb3da 100644 --- a/ribbon-loadbalancer/src/main/java/com/netflix/loadbalancer/WeightedResponseTimeRule.java +++ b/ribbon-loadbalancer/src/main/java/com/netflix/loadbalancer/WeightedResponseTimeRule.java @@ -194,7 +194,7 @@ public Server choose(ILoadBalancer lb, Object key) { // pick the server index based on the randomIndex int n = 0; for (Double d : currentWeights) { - if (d >= randomWeight) { + if (d > randomWeight) { serverIndex = n; break; } else {