-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Empty scroll contexts don't count #86407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Pinging @elastic/es-search (Team:Search) |
With PIT being favored over scroll these days, I'm wondering whether this is still worth addressing. |
If we're actively working to move off of scroll that's probably fine. Do we have similar PIT limits? I do think we'd have to, say, migrate reindex off of scroll and onto PIT before I'd feel good about ignoring this. |
I've noticed a behavior that I think is linked to what is described in this issue. If I'm mistaken, sorry, feel free to disregard or move to a new issue. When scrolling with slices, it seems that the number of created contexts is This is surprising to me since the documentation says that slices are first distributed among shards; so as long as I don't have an actual knowledge of the internals of slices and scroll contexts, so that's mostly an intuition, maybe I'm completely wrong and all the contexts are actually required. But anyway even if my understand is wrong, the effects are very real. If I have an index with 100 shards and I want to scroll it with 100 slices (as it seems logical to do), then 10k contexts are created on the cluster, and even with 20 nodes that exceeds the default of 500 open contexts/node. |
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
Description
Right now if you have one thousand shards and hit them all with
_scroll
it'll always bump into the scroll limit, even if most of those shards don't have matching document. It'd be lovely if we could "not count" shards without any data. I don't think we need to keep any state on those shards.The text was updated successfully, but these errors were encountered: