Class ShardsAvailabilityHealthIndicatorService
java.lang.Object
org.elasticsearch.cluster.routing.allocation.ShardsAvailabilityHealthIndicatorService
- All Implemented Interfaces:
HealthIndicatorService
public class ShardsAvailabilityHealthIndicatorService
extends Object
implements HealthIndicatorService
This indicator reports health for shards.
Indicator will report: * RED when one or more primary shards are not available * YELLOW when one or more replica shards are not available * GREEN otherwise
Each shard needs to be available and replicated in order to guarantee high availability and prevent data loses. Shards allocated on nodes scheduled for restart (using nodes shutdown API) will not degrade this indicator health.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
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
createIndicator
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
ShardsAvailabilityHealthIndicatorService
-
-
Method Details
-
name
- Specified by:
namein interfaceHealthIndicatorService
-
component
- Specified by:
componentin interfaceHealthIndicatorService
-
calculate
- Specified by:
calculatein interfaceHealthIndicatorService
-