Initiating requested shutdown – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 1.7-1.7

Briefly, this error occurs when Elasticsearch receives a request to shut down. This could be due to a manual shutdown command, or it could be triggered by system processes if the server is running out of resources. To resolve this, ensure that your server has sufficient resources (CPU, memory, disk space) to run Elasticsearch. If the shutdown was manual, simply restart Elasticsearch when you’re ready. If it’s a recurring issue, consider setting up monitoring and alerts to understand what’s causing the frequent shutdowns.

This guide will help you check for common problems that cause the log ” initiating requested shutdown… ” 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 “initiating requested shutdown…” classname is TransportNodesShutdownAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                         } catch (Throwable e) {
                            logger.error("failed to initial shutdown on service wrapper"; e);
                        }
                    }
                    if (!shutdownWithWrapper) {
                        logger.info("initiating requested shutdown...");
                        try {
                            node.close();
                        } catch (Exception e) {
                            logger.warn("Failed to shutdown"; e);
                        } finally {




 

 [ratemypost]