Skip to content
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

Add Parameter to not Return Index Name Lists in GET Snapshots API #82937

Closed
Tracked by #77466
original-brownbear opened this issue Jan 24, 2022 · 1 comment · Fixed by #86269
Closed
Tracked by #77466

Add Parameter to not Return Index Name Lists in GET Snapshots API #82937

original-brownbear opened this issue Jan 24, 2022 · 1 comment · Fixed by #86269
Assignees
Labels
:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >enhancement Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.

Comments

@original-brownbear
Copy link
Member

The GET snapshots API currently returns the full list of all indices in a snapshot for each snapshot, regardless of the verbose setting.
This causes unmanageable response sizes in larger clusters and forces iterating through snapshots in small chunks if one wants to inspect a larger number of snapshots. E.g. a 50k indices cluster will see a million strings returned for just the index names with a common repository size of 200 snapshots.

I'll add a parameter to hide the indices list here to make the API more useful and less resource intensive to use for larger clusters.

relates #77466

@original-brownbear original-brownbear added >enhancement :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs labels Jan 24, 2022
@original-brownbear original-brownbear self-assigned this Jan 24, 2022
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Jan 24, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

original-brownbear added a commit to original-brownbear/elasticsearch that referenced this issue Apr 28, 2022
original-brownbear added a commit that referenced this issue Apr 29, 2022
Adds a parameter `index_names` to the get snapshots API so that users may exclude the potentially very long index name lists when listing out snapshots.

closes #82937
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >enhancement Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants