-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
[ML] Handle large numbers of jobs in the GET jobs response #34864
Comments
Pinging @elastic/ml-core |
Since adding paging to the GET jobs endpoint is a breaking change I think we should do the following:
Alternatively, in 7.0 the UI could be changed to search the |
Current implementation is limited to first 10 jobs. This means that the UI only ever shows the first 10 jobs in the Job List page and the job list picker. You can never see more than these same 10 jobs. Having such a small page size is a blocker to testing in the short term. Can we consider increasing default search size in the short term? |
There is another way to approach this without changing the search size setting. We can bite the bullet and implement search/scroll in 6.x. Then we just remove it in master and we add instead a way to query jobs and pagination. |
The search size has been bumped to 10,000 and the Leaving this issue open as scan and scroll or pagination may be preferred in 7 |
I think we might have to revisit the limit before |
Closing as ancient and superseded by #59405 |
Relates to the Job in Index feature branch.
The current GET jobs api returns all jobs no matter how many there when that wild card
_all
is used as they are all available in the clusterstate. This is not the case when the jobs are index documents as the number returned is limited by the size of the search. The current default search size of 10 is not sufficient. Alternatives are to increase the search size to an arbitrary large number or use scan and scroll to collect the jobs.Page parameters could be added to the GET jobs request then it would be up to the client to page through jobs but this would be a breaking change if the behaviour of GET jobs was changed to return a subset of the jobs (page size) instead of all. Additionally page params do not work well with scan and scroll which is the preferred way to page results.
The text was updated successfully, but these errors were encountered: