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 Details
-
NAME
- See Also:
-
-
Constructor Details
-
ShardsAvailabilityHealthIndicatorService
-
-
Method Details
-
name
- Specified by:
name
in interfaceHealthIndicatorService
-
component
- Specified by:
component
in interfaceHealthIndicatorService
-
calculate
- Specified by:
calculate
in interfaceHealthIndicatorService
-