Cluster shutdown requested shutting down in – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 1.7-1.7

Briefly, this error occurs when a shutdown request has been made to the Elasticsearch cluster. This could be due to a manual shutdown command or an automatic shutdown triggered by system processes. To resolve this issue, you can restart the Elasticsearch cluster if the shutdown was unintentional. If the shutdown was due to system processes, you may need to investigate the root cause, such as insufficient resources or configuration issues, and address them before restarting the cluster.

This guide will help you check for common problems that cause the log ” [cluster_shutdown]: requested; shutting down in [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: admin, cluster and node.

Log Context

Log “[cluster_shutdown]: requested; shutting down in [{}]” classname is TransportNodesShutdownAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

         if (disabled) {
            throw new ElasticsearchIllegalStateException("Shutdown is disabled");
        }
        final ObjectOpenHashSet nodes = new ObjectOpenHashSet();
        if (state.nodes().isAllNodes(request.nodesIds)) {
            logger.info("[cluster_shutdown]: requested; shutting down in [{}]"; request.delay);
            nodes.addAll(state.nodes().dataNodes().values());
            nodes.addAll(state.nodes().masterNodes().values());
            Thread t = new Thread(new Runnable() {
                
Override
                public void run() {



 

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?