-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Configurable incremental restore files path #15451
Configurable incremental restore files path #15451
Conversation
Signed-off-by: Shlomi Noach <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15451 +/- ##
==========================================
- Coverage 65.64% 65.63% -0.01%
==========================================
Files 1563 1563
Lines 194389 194390 +1
==========================================
- Hits 127602 127595 -7
- Misses 66787 66795 +8 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Shlomi Noach <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should create an issue here: https://github.com/planetscale/vitess-operator/issues
So that the shared directory between the vttablet
and mysqld
containers in the vttablet
pod is used for this new flag.
I can do that if you prefer, but otherwise each user will need to update their cluster and roll pods in order to address this only after they've attempted a PITR and seen the failure which they then investigated to the point where they discovered the problem, its cause, the flag, and how to specify the override for it in their cluster yaml.
@mattlord I'm grateful if you could do that. |
Do we need to add this to the manual as well? |
Good point. Will do after merging. |
Signed-off-by: Shlomi Noach <[email protected]>
…15564) Signed-off-by: Shlomi Noach <[email protected]> Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
Documentation PR: vitessio/website#1711 |
Description
During an incremental restore process, the built-in engine copies backup files onto a temporary directory. Right now this temporary directory is rooted at the default OS temp dir (i.e.
/tmp
on Linux).In
k8s
deployments, this directory is not shared among pods. This means that the files written by the build in engine on one pod, are not visible tomysqlctl
on themysqld
pod, wheremysqlbinlog
binary expects to find and apply them.This PR adds a
vttablet
flag named--builtinbackup-incremental-restore-path
.Related Issue(s)
Fixes #14765.
This is an alternative solution to #15440.
Backport to v19
This should be backported to
release-19.0
because without this, commonk8s
deployments can't run point-in-time recoveries.Checklist
Deployment Notes