Class DiskThresholdDecider

java.lang.Object
org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider
org.elasticsearch.cluster.routing.allocation.decider.DiskThresholdDecider

public class DiskThresholdDecider
extends AllocationDecider
The DiskThresholdDecider checks that the node a shard is potentially being allocated to has enough disk space. It has three configurable settings, all of which can be changed dynamically: cluster.routing.allocation.disk.watermark.low is the low disk watermark. New shards will not allocated to a node with usage higher than this, although this watermark may be passed by allocating a shard. It defaults to 0.85 (85.0%). cluster.routing.allocation.disk.watermark.high is the high disk watermark. If a node has usage higher than this, shards are not allowed to remain on the node. In addition, if allocating a shard to a node causes the node to pass this watermark, it will not be allowed. It defaults to 0.90 (90.0%). Both watermark settings are expressed in terms of used disk percentage, or exact byte values for free space (like "500mb") cluster.routing.allocation.disk.threshold_enabled is used to enable or disable this decider. It defaults to true (enabled).
  • Field Details

    • NAME

      public static final java.lang.String NAME
      See Also:
      Constant Field Values
    • ENABLE_FOR_SINGLE_DATA_NODE

      public static final Setting<java.lang.Boolean> ENABLE_FOR_SINGLE_DATA_NODE
    • SETTING_IGNORE_DISK_WATERMARKS

      public static final Setting<java.lang.Boolean> SETTING_IGNORE_DISK_WATERMARKS
  • Constructor Details

  • Method Details