Skip to content

Disk Usage health indicator #84811

@andreidan

Description

@andreidan

Create a disk usage indicator that report to the user when their cluster is running out of space and the impact this has for its function. We propose the following health status and their interpretations:

Status Meaning Implementation
RED the disk is running out of space on at least one node or writes are blocked because of limited disk space. At least one node is above the flooding watermark, or at least one index is blocked by READ_ONLY_ALLOW_DELETE_BLOCK
YELLOW There is increased disk usage on at least one node. At least one data node is above the high watermark with no relocating shards or a non-data node is above the high watermark.*
GREEN All good, nothing elasticsearch cannot handle :) . If none of the above apply.

Implementation details
The collection of the data should be done using the persistent tasks frameworks.

Nodes will listen to cluster state changes for the allocation of the "health persistent task" and push their initial status. After the initialization, the nodes will only push changes to their state (ie. when they change from RED to YELLOW).

The allocated persistent task should be prepared to delay a potential initial request for health if the request arrives before it got a chance to receive the statuses from the nodes.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions