After allocating node would have less than the required threshold of – How to solve this OpenSearch error

Opster Team

Aug-23, Version: 1-1.1

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your OpenSearch operation.

Briefly, this error occurs when OpenSearch attempts to allocate shards to a node, but doing so would leave the node with less than the required threshold of free disk space. OpenSearch has a built-in mechanism to prevent disk space issues. To resolve this, you can either increase the disk space available on the node, adjust the disk watermark thresholds, or manually move some shards to other nodes with more available disk space. Be cautious when adjusting disk watermark thresholds as it may lead to disk space issues if not managed properly.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

This guide will help you check for common problems that cause the log ” after allocating [{}] node [{}] would have less than the required threshold of ” to appear. To understand the issues related to this log, read the explanation below about the following OpenSearch concepts: threshold, cluster, allocation, routing, node.

Log Context

Log “after allocating [{}] node [{}] would have less than the required threshold of” classname is
We extracted the following from OpenSearch source code for those seeking an in-depth context :

            allocation.clusterInfo(); allocation.snapshotShardSizeInfo(); allocation.metadata(); allocation.routingTable());
        assert shardSize >= 0 : shardSize;
        double freeSpaceAfterShard = freeDiskPercentageAfterShardAssigned(usage; shardSize);
        long freeBytesAfterShard = freeBytes - shardSize;
        if (freeBytesAfterShard 


How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Get expert answers on Elasticsearch/OpenSearch