Prioritize search requests over index requests

How can I force elasticsearch to always take care of search requests first then index requests.

You can not. They are served by different thread pools and you can not prioritise one over the other.

What is the problem you are having?

But maybe it's possible to give more resources to search requests. CPU, RAM etc.

The problem is that I need to search and index at the same time. This increase search response time. Because elasticsearch is busy with indexing,.

You might be able to achieve this by reducing the size of the index and bulk thread pools, but that would lead to a constant limitation, not prioritisation. I don't think you can allocate other types of resources across different tasks.

Ok thank you Christian.

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