# Scroll cost (how to tune the \`search.max\_open\_scroll\_context\` limit)

**URL:** <https://discuss.elastic.co/t/scroll-cost-how-to-tune-the-search-max-open-scroll-context-limit/212210>\
**Category:** Elasticsearch\
**Created:** [December 17, 2019, 6:01pm UTC](https://discuss.elastic.co/t/scroll-cost-how-to-tune-the-search-max-open-scroll-context-limit/212210 "2019-12-17T18:01:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![liev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/liev/32/59578_2.png) [@liev](https://discuss.elastic.co/u/liev)\
**Post date:** [December 17, 2019, 6:01pm UTC](https://discuss.elastic.co/t/scroll-cost-how-to-tune-the-search-max-open-scroll-context-limit/212210/1 "2019-12-17T18:01:38Z")

</div>

Hi,

While preparing a migration to ES v7.5 I've seen that the limit of `max_open_scroll_context` defaults to 500. What metrics should I monitor before considering raising this limit? How can I monitor the "cost" of my scrolls?

Our current usage is between ~100 and 500 simultaneous scrolls. But our platform usage is growing fast and I would like to keep some margin.  
I'm investigating whether raising to something like 2 to 5k is feasible or whether we should change some of our worklows when possible (for instance some of them would probably be fine with a `search_after` usage).

Thanks a lot.

Léonard

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 14, 2020, 6:01pm UTC](https://discuss.elastic.co/t/scroll-cost-how-to-tune-the-search-max-open-scroll-context-limit/212210/2 "2020-01-14T18:01:52Z")

</div>

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