Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
Signed-off-by: Suraj Singh <[email protected]>
  • Loading branch information
dreamer-89 committed Mar 27, 2023
1 parent 48f5623 commit 7002c88
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,8 @@ public void testAllocationWithDisruption() throws Exception {
internalCluster().startClusterManagerOnlyNode();
final int maxReplicaCount = 2;
final int maxShardCount = 2;
// Create maxReplicaCount+2 number of nodes. maxReplicaCount for replica shards & 1 node for primary shard
// allocation. One extra node to ensure post failover, primary shards do not remain stuck on one node due to
// SameShardAllocationDecider preventing re-balancing
// Create higher number of nodes than number of shards to reduce chances of SameShardAllocationDecider kicking-in
// and preventing primary relocations
final int nodeCount = randomIntBetween(5, 10);
final int numberOfIndices = randomIntBetween(1, 10);

Expand Down

0 comments on commit 7002c88

Please sign in to comment.