We are using Elasticsearch (v7.3.2) for our search solution and we use a Java API to get the search results from Elasticsearch. This is working fine.
In the Test environment we are not using Elasticsearch everyday. What I've noticed now is that if I do a new call to Elasticsearch this request is failing the first time. The next calls are going ok and give results.
It looks like Elasticsearch is going to "sleep mode" after a couple of hours not getting any requests. But I can't find anything about this in the documentation but I found another question here about the same issue.
Strange enough there is no clear answer from Elasticsearch.
So my question, is there some kind of sleep mode for Elasticsearch after some time? Can I disable this ?
I think you are asking about the elasticsearch client and not the server.
I honestly don't know. I wonder if there are some keep alive settings for the underlying http client which can be configured within the low level client.
I am pretty sure if we had that sort of functionality anywhere in the Elasticsearch code base, it'd be documented. That seems like a large enough gotcha to make it visible on multiple levels.
What I'm going to test is to do one call each day from Postman. Let's see how that goes.
Then I'm not using our Java API. Just do a call directly to Elasticsearch.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.