ES 7.0 takes longer to respond the first search query

Seeing a performance issue in ES.

When we run 2 queries with a gap of 10-15 mins, the query runs very slow.

Subsequent queries running back to back are very fast but when we give a gap of 10-15 mins, first query takes longer to give results.

Could you please help in solving this issue. We need all es queries results within 1 sec.

Thanks :slight_smile:

Are you indexing documents into the indices that you are searching? Do you have index.refresh_interval set on all the indices that you are searching? If the answers are "yes" and "no" then Elasticsearch stops doing background refreshes to improve indexing performance, but the first search after a gap will need to refresh first, and this can take some time. You can disable this optimisation by setting index.refresh_interval to an appropriate value on these indices.

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