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

Opster Team

Aug-23, Version: 2.3-2.3

Briefly, this error occurs when there’s an attempt to update the cluster routing allocation settings in Elasticsearch, specifically disabling allocation. This could be due to a variety of reasons such as maintenance operations, node failures, or data relocation. To resolve this issue, you can re-enable allocation by setting cluster.routing.allocation.enable to ‘all’. If the problem persists, check the health of your nodes and ensure they are properly connected. Also, verify your Elasticsearch version as some older versions may have bugs related to allocation settings.

This guide will help you check for common problems that cause the log ” updating [cluster.routing.allocation.disable_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_allocation] from [{}] to [{}]” classname is DisableAllocationDecider.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                 DisableAllocationDecider.this.disableNewAllocation = disableNewAllocation;
            }

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

            boolean disableReplicaAllocation = settings.getAsBoolean(CLUSTER_ROUTING_ALLOCATION_DISABLE_REPLICA_ALLOCATION; DisableAllocationDecider.this.disableReplicaAllocation);
            if (disableReplicaAllocation != DisableAllocationDecider.this.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?