Degrading search performance and old recods


My searches become slower and slower as the number of indexed documents grow.

However, we only query the documents that happen to be produced in the last 3 months.

I wonder if it is possible to have an alias or another Elasticsearch construct that allows for querying only the last 3 months of data so that the performance does not degrade as records grow.

We don't want to discard old records because we may run reports from time to time over the whole index, but those are not performance-critical.

Any ideas on how to stop search performance from degrading?

Which version of Elasticsearch are you using?

What is the specification of the cluster in terms of hardware, node count and data volumes?

Version is 7.15.x docker
It is a single node single index... a simple application.

The use case is to provide search support to an app.

What type of storage are you using?

What does iostat -x show while you are searching and seeing slowness?

How much data do you have in the cluster?

How much resources does the node have in terms of CPU, RAM and heap?

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