Failed to run scheduled health monitoring on thread pool %s – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8.5-8.9

Briefly, this error occurs when Elasticsearch is unable to execute the scheduled health monitoring task due to issues with the thread pool. This could be due to resource constraints, such as CPU or memory, or a configuration issue. To resolve this, you can try increasing the size of the thread pool, ensure there’s enough system resources available, or check the configuration settings related to thread pool and health monitoring. If the issue persists, consider reviewing the logs for more detailed error information.

This guide will help you check for common problems that cause the log ” Failed to run scheduled health monitoring on thread pool [%s] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: pool, node, thread.

Log Context

Log “Failed to run scheduled health monitoring on thread pool [%s]” classname is LocalHealthMonitor.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                        );
                        nextRunScheduled = true;
                    }
                }
            } catch (Exception e) {
                logger.warn(() -> format("Failed to run scheduled health monitoring on thread pool [%s]"; executor); e);
            } finally {
                // If the next run isn't scheduled because for example the health info hasn't changed; we schedule it here.
                if (nextRunScheduled == false) {
                    scheduleNextRun.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?