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:
-
REDwhen there's room for less than the configuredhealth.shard_capacity.unhealthy_threshold.red(default 5) shards (either data or frozen nodes) -
YELLOWwhen there's room for less than the configuredhealth.shard_capacity.unhealthy_threshold.yellow(default 10) shards (either data or frozen nodes) -
GREENotherwise
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from interface org.elasticsearch.health.HealthIndicatorService
MAX_AFFECTED_RESOURCES_COUNT -
Constructor Summary
Constructors -
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, waitMethods inherited from interface org.elasticsearch.health.HealthIndicatorService
calculate, createIndicator, isPreflight
-
Field Details
-
SETTING_SHARD_CAPACITY_UNHEALTHY_THRESHOLD_YELLOW
-
SETTING_SHARD_CAPACITY_UNHEALTHY_THRESHOLD_RED
-
-
Constructor Details
-
ShardsCapacityHealthIndicatorService
-
-
Method Details
-
name
- Specified by:
namein interfaceHealthIndicatorService
-
calculate
public HealthIndicatorResult calculate(boolean verbose, int maxAffectedResourcesCount, HealthInfo healthInfo) - Specified by:
calculatein interfaceHealthIndicatorService
-