-
Notifications
You must be signed in to change notification settings - Fork 1.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
[Feature Request] Paginate snapshot indices status fetching #16985
Comments
I believe #14258 introduced a new top-level |
@andrross I was thinking of paging the The API for paging indices is
The API for paging shards is
What do you think? |
@bugmakerrrrrr Adding two new |
Is your feature request related to a problem? Please describe
Our customers depend on the snapshot status API to access information about snapshot indices, like store size, number of docs, etc. The
TransportSnapshotStatusAction
utilizes a singleGeneric
thread to retrieve repository data, snapshot information, snapshot index metadata, and shard snapshot status if the specified snapshot(s) is not currently running. However, when the specified snapshot contains a large number of indices, the execution time for this action becomes significantly prolonged.In one of the snapshot which has 15000+ shards, snapshot status fetching was taking 8min.
Describe the solution you'd like
Provide a new API (
_snapshot/{repository}/{snapshot}/_list/indices
) to paginate snapshot indices status like we did in #14258. The new API works only for indexes belonging to a specific snapshot. Since the order of indices inSnapshotInfo
is settled, we can simply usefrom + size
to paginate. If the specified snapshot is running, then the paginating parameters will have no effect.Related component
Storage:Snapshots
Describe alternatives you've considered
Using the snapshot thread pool to parallelize indices snapshot status fetching. But the snapshot thread pool might be blocked on long running tasks. Moreover, the maximum number of threads in the snapshot thread pool is only 5, so the speedup effect may be limited
Additional context
No response
The text was updated successfully, but these errors were encountered: