Module org.elasticsearch.server
Package org.elasticsearch.health.node
Class DiskHealthIndicatorService
java.lang.Object
org.elasticsearch.health.node.DiskHealthIndicatorService
- All Implemented Interfaces:
HealthIndicatorService
This indicator reports the clusters' disk health aka if the cluster has enough available space to function.
Indicator will report YELLOW status when:
- a data node's disk usage is above the high watermark and it's not relocating any of its shards.
- a non data node's disk usage is above the high watermark.
Indicator will report RED status when:
- an index has the INDEX_READ_ONLY_ALLOW_DELETE_BLOCK which indicates that an index has been blocked because a node was out of space.
- any node's disk usage is above the flood stage watermark.
-
Field Summary
FieldsFields inherited from interface org.elasticsearch.health.HealthIndicatorService
MAX_AFFECTED_RESOURCES_COUNT
-
Constructor Summary
ConstructorsConstructorDescriptionDiskHealthIndicatorService
(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
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
DiskHealthIndicatorService
-
-
Method Details
-
name
- Specified by:
name
in interfaceHealthIndicatorService
-
calculate
public HealthIndicatorResult calculate(boolean verbose, int maxAffectedResourcesCount, HealthInfo healthInfo) - Specified by:
calculate
in interfaceHealthIndicatorService
-