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

tidb-backup: add restoreUsingExistingVolume option (#1708) #1712

Merged
merged 2 commits into from
Feb 18, 2020

Conversation

sre-bot
Copy link
Contributor

@sre-bot sre-bot commented Feb 17, 2020

cherry-pick #1708 to release-1.1


What problem does this PR solve?

It looks like for ad-hoc backup and restore (at least in the failing test), the helm chart expects the same pvc from the backup to be kept around and used for the subsequent restore. This only works if the source and target clusters are in the same namespace.

I would like to restore to a cluster without any local backups, running on a different Kubernetes cluster in a different region, via S3.

This is split from #1705

What is changed and how does it work?

This adds a restoreUsingExistingVolume defaulting to true. If set to false, then a new volume in the restore mode to hold data loaded from s3, gcp, ceph, etc.

This option has the same effect as simply setting the mode to scheduled-restore, but I didn't really understand what scheduled-restore meant.

Does this PR introduce a user-facing change?:

Add an option for tidb-backup chart to allow reusing existing PVC or not for restore

Copy link
Contributor

@aylei aylei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cofyc cofyc merged commit 03bab01 into pingcap:release-1.1 Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants