Updating cluster routing allocation disable replica allocation from to – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 2.3-2.3

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 Elasticsearch operation.

Briefly, this error occurs when there’s an attempt to disable replica allocation in the Elasticsearch cluster. This is usually done during a rolling upgrade or when performing maintenance to prevent Elasticsearch from reallocating the replicas to other nodes. To resolve this, you can re-enable the replica allocation once the maintenance or upgrade is done by setting the cluster.routing.allocation.enable to ‘all’. Also, ensure that your cluster has enough resources to handle the replica shards. If not, consider adding more nodes or increasing the resources of the existing nodes.

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 ” updating [cluster.routing.allocation.disable_replica_allocation] from [{}] to [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: allocation, cluster and routing.

Log Context

Log “updating [cluster.routing.allocation.disable_replica_allocation] from [{}] to [{}]” classname is DisableAllocationDecider.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                 DisableAllocationDecider.this.disableAllocation = disableAllocation;

            boolean disableReplicaAllocation = settings.getAsBoolean(CLUSTER_ROUTING_ALLOCATION_DISABLE_REPLICA_ALLOCATION; DisableAllocationDecider.this.disableReplicaAllocation);
            if (disableReplicaAllocation != DisableAllocationDecider.this.disableReplicaAllocation) {
                logger.info("updating [cluster.routing.allocation.disable_replica_allocation] from [{}] to [{}]"; DisableAllocationDecider.this.disableReplicaAllocation; disableReplicaAllocation);
                DisableAllocationDecider.this.disableReplicaAllocation = disableReplicaAllocation;


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