Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting

Hey Team,
Greetings...I am new to elasticsearch. Im getting this error."Trying to create too many scroll contexts. Must be less than or equal to: [500]. This limit can be set by changing the [search.max_open_scroll_context] setting".
I have 3 data nodes. Shall I try to increase the count as ```
"search.max_open_scroll_context": 1024 ? Is it a good approach?


Thanks in advance.

Hi Gokulnath,

Scroll contexts are expensive to maintain which is why we limit the number of concurrent scrolls allowed. See Impact of multiple concurrent scroll API on ElasticSearch

Thanks for fast reply.
We planned to clear the scroll context from application side, I came to know that scroll context will get auto cleared after the time which we specify.
Could you please suggest me that which one is correct?
a.) wait until elasticsearch to auto cleared.(I think it will not work for my case.)
b.) manually delete the scroll context.(If so, will it affect any other functionality of elasticsearch?)

Thanks for your time.

The scroll context is reserved for a time period. Either it lapses and is auto-cleared after the time is up or your app is courteous and clears the context when it is finished to free up the resources after you no longer need them

1 Like

Thanks a lot Mark.

1 Like

Is it possible to take the scroll contexts count?. If so kindly help me to get the count. Because I want to track how many total Scroll contexts are there.

Thanks in advance

1 Like

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