Max size of scroll window?

I need to get all documents from index, so for that I using scroll to get all documents in bulks. Since my goal is to perform as less round-trips to elastic as possible, I want bulk size as big as possible.

What is the maximal size of scroll window? Sorry, can't find this number in documentation...

set in elasticsearch.yml file , this about use elasticsearch-head tools need settings.
index.max_result_window: 10000

Thanks! And what is the default?

it default about 10000 as i know

Sure you can modify the default maximum value but I hope you understand the consequence of it and the memory pressure this is going to add on your nodes as nodes will have to send more data to the coordinating node which will have to hold that in memory.

I'd recommend doing tests of this solution.

It's a tradeoff between round-trips and memory usage.

3 Likes

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