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

Opster Team

Aug-23, Version: 1.7-1.7

Briefly, this error occurs when there’s an attempt to change the cluster routing allocation settings in Elasticsearch. This setting controls the allocation of shards across the nodes in the cluster. The error could be due to incorrect syntax, invalid value, or insufficient permissions. To resolve this, ensure you’re using the correct syntax and valid values (all, primaries, new_primaries, none). Also, check that the user has the necessary permissions to update cluster settings. If the issue persists, consider checking the cluster health and resolving any underlying issues.

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

    public void onRefreshSettings(Settings settings) {
        Allocation enable = Allocation.parse(settings.get(CLUSTER_ROUTING_ALLOCATION_ENABLE; this.enable.name()));
        if (enable != this.enable) {
            logger.info("updating [cluster.routing.allocation.enable] from [{}] to [{}]"; this.enable; enable);
            EnableAllocationDecider.this.enable = enable;

    public enum Allocation {


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?