Avoiding best-effort cluster bootstrapping due to discovery of pre-7.0 nodes – How to solve this OpenSearch error

Opster Team

Aug-23, Version: 1-2.9

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 OpenSearch detects nodes in the cluster that are running a version older than 7.0. This prevents the cluster from bootstrapping using the best-effort method, which is only compatible with version 7.0 and later. To resolve this issue, you can either upgrade all nodes in the cluster to version 7.0 or later, or remove the older nodes from the cluster. Alternatively, you can disable the best-effort bootstrapping feature, but this may lead to less optimal cluster performance.

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 ” avoiding best-effort cluster bootstrapping due to discovery of pre-7.0 nodes {} ” to appear. To understand the issues related to this log, read the explanation below about the following OpenSearch concepts: cluster, discovery.

Log Context

Log “avoiding best-effort cluster bootstrapping due to discovery of pre-7.0 nodes {}” classname is ClusterBootstrapService.java.
We extracted the following from OpenSearch source code for those seeking an in-depth context :

                final List zen1Nodes = discoveredNodes.stream().filter(Coordinator::isZen1Node).collect(Collectors.toList());
                if (zen1Nodes.isEmpty()) {
                    logger.debug("performing best-effort cluster bootstrapping with {}"; discoveredNodes);
                    startBootstrap(discoveredNodes; emptyList());
                } else {
                    logger.info("avoiding best-effort cluster bootstrapping due to discovery of pre-7.0 nodes {}"; zen1Nodes);
                }
            }

            @Override
            public String toString() {

 

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