None of the configured nodes are available

The version of Elasticsearch I used is 2.4.6 and the deployment mode is single-node es.
When I was running a query with a data volume of 7 million, the following error occurred in es:

In addition, by adding GC log parameters, it is found that when problems occur, es is undergoing Full GC at this time, and the CMS collector is degraded to the Serial collector.

Is there any way I can solve this problem?

Welcome to our community! :smiley:

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them :slight_smile:

Sorry, because my code error is in the Intranet environment, I cannot copy the error log, so I have to put up the error screenshot.

I resolved the problem by using a retry mechanism. The specific code is as follows:

for (int i = 0; i < 10; i++) {
        // may throw exception code
        // xxxxxxxx
    } catch (Exception e) {
        if (i < 9) {
            System.out.println("handle with es occur exception, wait ande continut" + i);
            System.out.println("exception is:" + e.printStrace());

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.