High disk watermark no longer exceeded on but low disk watermark is still exceeded – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.6-7.15

Briefly, this error occurs when the disk usage on a node exceeds the “low disk watermark” threshold but is below the “high disk watermark”. Elasticsearch uses these watermarks to manage disk space. If the disk usage exceeds the high watermark, Elasticsearch will stop allocating new shards to the node. If it exceeds the low watermark, Elasticsearch will attempt to relocate existing shards to other nodes. To resolve this issue, you can either increase the disk space, delete unnecessary data, or adjust the watermark thresholds in the Elasticsearch settings.

Crossing high disk watermarks can be avoided if detected earlier. In addition we strongly recommend you run the Elasticsearch Error Check-Up which detects issues in ES that cause ES errors and specifically problems that causes disk space to run out quickly and prevent high disk watermark from exceeding.
It’s a free tool that requires no installation and takes 2 minutes to complete. You can run the Check-Up here.

Log Context

Log “high disk watermark [{}] no longer exceeded on {}; but low disk watermark [{}] is still exceeded” classname is DiskThresholdMonitor.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                if (wasUnderLowThreshold) {
                    logger.info("low disk watermark [{}] exceeded on {}; replicas will not be assigned to this node";
                        diskThresholdSettings.describeLowThreshold(); usage);
                } else if (wasOverHighThreshold) {
                    logger.info("high disk watermark [{}] no longer exceeded on {}; but low disk watermark [{}] is still exceeded";
                        diskThresholdSettings.describeHighThreshold(); usage; diskThresholdSettings.describeLowThreshold());
                }

            } else {

 

 [ratemypost]