Skip to content

Commit

Permalink
apache#2104 Fix ping-pong on load balancing
Browse files Browse the repository at this point in the history
  • Loading branch information
navis committed May 21, 2019
1 parent ced1fe2 commit 77a848e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public List<Pair<BalancerSegmentHolder, ImmutableDruidServer>> select(

final int numSegments = allSegments.size();
final int groupPerServer = Math.max(1, numSegments / serverCount / 12);
final int tolerance = groupPerServer / 6;
final int tolerance = Math.max(1, groupPerServer / 6);

final List<Integer> deficit = Lists.newArrayList();
final List<Integer> excessive = Lists.newArrayList();
Expand Down

0 comments on commit 77a848e

Please sign in to comment.