Health check of took ms which is above the warn threshold of – How to solve this OpenSearch error

Opster Team

Aug-23, Version: 1-1.1

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your OpenSearch operation.

Briefly, this error occurs when the health check of a particular component in OpenSearch takes longer than the set warning threshold. This could be due to high load, insufficient resources, or network issues. To resolve this, you could increase the warning threshold if the current setting is too low. Alternatively, you could optimize your OpenSearch operations to reduce the load, allocate more resources if available, or troubleshoot potential network issues that might be causing delays.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

This guide will help you check for common problems that cause the log ” health check of [{}] took [{}ms] which is above the warn threshold of [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following OpenSearch concepts: threshold, monitor.

Log Context

Log “health check of [{}] took [{}ms] which is above the warn threshold of [{}]” classname is FsHealthService.java.
We extracted the following from OpenSearch source code for those seeking an in-depth context :

                            IOUtils.fsync(tempDataPath; false);
                        }
                        Files.delete(tempDataPath);
                        final long elapsedTime = currentTimeMillisSupplier.getAsLong() - executionStartTime;
                        if (elapsedTime > slowPathLoggingThreshold.millis()) {
                            logger.warn("health check of [{}] took [{}ms] which is above the warn threshold of [{}]";
                                path; elapsedTime; slowPathLoggingThreshold);
                        }
                    }
                } catch (Exception ex) {
                    logger.error(new ParameterizedMessage("health check of [{}] failed"; path); ex);

 

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?

Get expert answers on Elasticsearch/OpenSearch