Cluster routing allocation allow rebalance has a wrong value defaulting to indices all active – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 1.3-1.3

Briefly, this error occurs when the Elasticsearch cluster routing allocation setting for rebalance has an incorrect value. This setting controls when shard rebalancing should occur in the cluster. The system defaults to ‘indices_all_active’ if the value is wrong. To resolve this, you can either correct the value in the Elasticsearch configuration file or use the cluster update settings API to change the value dynamically. Ensure the value is one of ‘always’, ‘indices_primaries_active’, ‘indices_all_active’ or ‘never’.

This guide will help you check for common problems that cause the log ” [cluster.routing.allocation.allow_rebalance] has a wrong value {}; defaulting to ‘indices_all_active’ ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: allocation, cluster, rebalance and routing.

Log Context

Log “[cluster.routing.allocation.allow_rebalance] has a wrong value {}; defaulting to ‘indices_all_active'” classname is ClusterRebalanceAllocationDecider.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

         } else if ("indices_primaries_active".equalsIgnoreCase(allowRebalance) || "indicesPrimariesActive".equalsIgnoreCase(allowRebalance)) {
            type = ClusterRebalanceType.INDICES_PRIMARIES_ACTIVE;
        } else if ("indices_all_active".equalsIgnoreCase(allowRebalance) || "indicesAllActive".equalsIgnoreCase(allowRebalance)) {
            type = ClusterRebalanceType.INDICES_ALL_ACTIVE;
        } else {
            logger.warn("[cluster.routing.allocation.allow_rebalance] has a wrong value {}; defaulting to 'indices_all_active'"; allowRebalance);
            type = ClusterRebalanceType.INDICES_ALL_ACTIVE;
        }
        logger.debug("using [cluster.routing.allocation.allow_rebalance] with [{}]"; type.toString().toLowerCase(Locale.ROOT));
    }





 

 [ratemypost]