Module org.elasticsearch.server
Package org.elasticsearch.health.node
Class ShardsCapacityHealthIndicatorService
java.lang.Object
org.elasticsearch.health.node.ShardsCapacityHealthIndicatorService
- All Implemented Interfaces:
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 5 shards (either data or frozen nodes) * YELLOW when there's room for less than 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 Summary
Fields inherited from interface org.elasticsearch.health.HealthIndicatorService
MAX_AFFECTED_RESOURCES_COUNT
-
Constructor Summary
ConstructorsConstructorDescriptionShardsCapacityHealthIndicatorService
(ClusterService clusterService, FeatureService featureService) -
Method Summary
Modifier and TypeMethodDescriptioncalculate
(boolean verbose, int maxAffectedResourcesCount, HealthInfo healthInfo) name()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.health.HealthIndicatorService
calculate, createIndicator, isPreflight
-
Constructor Details
-
ShardsCapacityHealthIndicatorService
public ShardsCapacityHealthIndicatorService(ClusterService clusterService, FeatureService featureService)
-
-
Method Details
-
name
- Specified by:
name
in interfaceHealthIndicatorService
-
calculate
public HealthIndicatorResult calculate(boolean verbose, int maxAffectedResourcesCount, HealthInfo healthInfo) - Specified by:
calculate
in interfaceHealthIndicatorService
-