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

API to simplify repair of red indices from a good snapshot copy #88974

Open
Leaf-Lin opened this issue Aug 1, 2022 · 2 comments
Open

API to simplify repair of red indices from a good snapshot copy #88974

Leaf-Lin opened this issue Aug 1, 2022 · 2 comments
Labels
:Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >enhancement Team:Distributed Meta label for distributed team

Comments

@Leaf-Lin
Copy link
Contributor

Leaf-Lin commented Aug 1, 2022

Description

Today, if the data in hot/warm tier is lost and an index becomes red, it takes some manual process to recover:

  1. Identify which snapshot contains the latest data.
  2. Close/delete the existing red index.
  3. Restore data from snapshot.

Since data from the cold/frozen tier can self-recover via searchable snapshot already, it would be great if this ability can be extended to hot/warm data via some configuration as autohealing.

This is an advanced proposal to automatically recover data related to elastic/kibana#137368

@Leaf-Lin Leaf-Lin added >enhancement :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed Meta label for distributed team labels Aug 1, 2022
@elasticsearchmachine
Copy link
Collaborator

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

@DaveCTurner
Copy link
Contributor

I think we should not do this fully automatically: indices in the hot and warm tiers are still writeable so restoring from a recent snapshot represents some amount of risk of data loss. We can make an API to encapsulate the steps of this process into a single action but I think it's necessary to keep the user in the loop in any case. The linked Kibana issue also appears to be more about simplifying the process rather than making it fully automatic. I will adjust the title to clarify this.

@DaveCTurner DaveCTurner changed the title Automatically recover read-only data from a good snapshot copy API to simplify repair of red indices from a good snapshot copy Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >enhancement Team:Distributed Meta label for distributed team
Projects
None yet
Development

No branches or pull requests

3 participants