Class IndexBalanceConstraintSettings

java.lang.Object
org.elasticsearch.cluster.routing.allocation.IndexBalanceConstraintSettings

public class IndexBalanceConstraintSettings extends Object
Settings definitions for the index shard count allocation decider and associated infrastructure
  • Field Details

    • INDEX_BALANCE_DECIDER_ENABLED_SETTING

      public static final Setting<Boolean> INDEX_BALANCE_DECIDER_ENABLED_SETTING
    • INDEX_BALANCE_DECIDER_EXCESS_SHARDS

      public static final Setting<Integer> INDEX_BALANCE_DECIDER_EXCESS_SHARDS
      This setting permits nodes to host more than ideally balanced number of index shards. Maximum tolerated index shard count = ideal + skew_tolerance i.e. ideal = 4 shards, skew_tolerance = 1 maximum tolerated index shards = 4 + 1 = 5.
  • Constructor Details

    • IndexBalanceConstraintSettings

      public IndexBalanceConstraintSettings(ClusterSettings clusterSettings)
  • Method Details

    • isDeciderEnabled

      public boolean isDeciderEnabled()
    • getExcessShards

      public int getExcessShards()