Skip to content

Commit

Permalink
Enable the prefer_primary to true
Browse files Browse the repository at this point in the history
Signed-off-by: Arpit Bandejiya <abandeji@amazon.com>
  • Loading branch information
Arpit-Bandejiya committed Mar 18, 2024
1 parent 938ac4d commit 6cda5cd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public class BalancedShardsAllocator implements ShardsAllocator {

public static final Setting<Boolean> PREFER_PRIMARY_SHARD_BALANCE = Setting.boolSetting(
"cluster.routing.allocation.balance.prefer_primary",
false,
true,
Property.Dynamic,
Property.NodeScope
);
Expand All @@ -154,7 +154,7 @@ public class BalancedShardsAllocator implements ShardsAllocator {
);

/**
* This setting governs whether shards should be randomly allocated during assignment.
* This setting governs whether shards should be randomly allocated among the eligible nodes during assignment.
*/
public static final Setting<Boolean> PREFER_RANDOM_SHARD_ALLOCATION = Setting.boolSetting(
"cluster.routing.allocation.balance.prefer_random_allocation",
Expand Down

0 comments on commit 6cda5cd

Please sign in to comment.