Class ShardsCapacityHealthIndicatorService

java.lang.Object
org.elasticsearch.health.node.ShardsCapacityHealthIndicatorService
All Implemented Interfaces:
HealthIndicatorService

public class ShardsCapacityHealthIndicatorService extends Object implements HealthIndicatorService
This indicator reports health data about the shard capacity across the cluster. The indicator will report:
  • RED when there's room for less than the configured health.shard_capacity.unhealthy_threshold.red (default 5) shards (either data or frozen nodes)
  • YELLOW when there's room for less than the configured health.shard_capacity.unhealthy_threshold.yellow (default 10) shards (either data or frozen nodes)
  • GREEN otherwise
Although the `max_shard_per_node(.frozen)?` information is scoped by Node, we use the information from master because there is where the available room for new shards is checked before creating new indices.
  • Field Details

    • SETTING_SHARD_CAPACITY_UNHEALTHY_THRESHOLD_YELLOW

      public static final Setting<Integer> SETTING_SHARD_CAPACITY_UNHEALTHY_THRESHOLD_YELLOW
    • SETTING_SHARD_CAPACITY_UNHEALTHY_THRESHOLD_RED

      public static final Setting<Integer> SETTING_SHARD_CAPACITY_UNHEALTHY_THRESHOLD_RED
  • Constructor Details

    • ShardsCapacityHealthIndicatorService

      public ShardsCapacityHealthIndicatorService(ClusterService clusterService)
  • Method Details