Skip to content

[ML] Handle large numbers of jobs in the GET jobs response #34864

Closed
@davidkyle

Description

@davidkyle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions