Failed to perform scheduled engine optimize merge – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 1.7-1.7

Briefly, this error occurs when Elasticsearch is unable to perform a scheduled task to optimize or merge the indices. This could be due to insufficient disk space, high CPU usage, or a configuration issue. To resolve this, you can free up disk space, reduce the load on the CPU, or check the Elasticsearch configuration for any errors. Additionally, ensure that the Elasticsearch process has the necessary permissions to perform these tasks.

This guide will help you check for common problems that cause the log ” Failed to perform scheduled engine optimize/merge ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: index and shard.

Log Context

Log “Failed to perform scheduled engine optimize/merge” classname is IndexShard.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                             // ignore; we are being shutdown
                        } else if (e.getCause() instanceof ThreadInterruptedException) {
                            // ignore; we are being shutdown
                        } else {
                            if (state != IndexShardState.CLOSED) {
                                logger.warn("Failed to perform scheduled engine optimize/merge"; e);
                            }
                        }
                    } catch (Exception e) {
                        if (state != IndexShardState.CLOSED) {
                            logger.warn("Failed to perform scheduled engine optimize/merge"; e);




 

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?