High disk watermark exceeded on one or more nodes rerouting shards – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 1.7-1.7

Briefly, this error occurs when the disk usage on one or more Elasticsearch nodes exceeds the high watermark threshold, which is 85% by default. Elasticsearch will stop allocating new shards to the node to prevent disk fill up. To resolve this issue, you can either increase the disk space, delete unnecessary indices, or adjust the disk watermark thresholds. However, be cautious when adjusting the thresholds as it might lead to disk fill up and data loss.

This guide will help you check for common problems that cause the log ” high disk watermark exceeded on one or more nodes; rerouting shards ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: allocation, cluster, rest-high-level, routing and shards.

Log Context

Log “high disk watermark exceeded on one or more nodes; rerouting shards” classname is DiskThresholdDecider.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                                     entry; DiskThresholdDecider.this.rerouteInterval);
                        }
                    }
                }
                if (reroute) {
                    logger.info("high disk watermark exceeded on one or more nodes; rerouting shards");
                    // Execute an empty reroute; but don't block on the response
                    client.admin().cluster().prepareReroute().execute();
                }
            }
        }




 

 [ratemypost]