-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Add an index setting to limit the maximum number of slices allowed in a scroll request. #18782
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
Conversation
/** | ||
* The maximum number of slices allowed in a scroll request | ||
*/ | ||
public static final Setting<Integer> MAX_SLICES_PER_SCROLL = Setting.intSetting("index.max_slices_per_scroll", 10000, 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should default it to the number of shards :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should be very conservative here by default
left some comments! thanks for doing this! |
@s1monw I pushed another commit to address your comments. The default maximum number of slices is now equal to the number of shards in the requested index. |
this might actually not work 😞 if we go through an alias we may have way more slices than shards in a single index. and then we fail half way. So I think we need something different (as you had)? Maybe |
Don't _shrink my scroll ! ;) |
+1 to a fixed limit, I think it is easier to reason about |
… a scroll request (default to 1024).
LGTM |
This is a follow up for #18237 (comment)