-
Notifications
You must be signed in to change notification settings - Fork 501
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
enable customizing mydumper options in CRD backup #2407
enable customizing mydumper options in CRD backup #2407
Conversation
cmd/backup-manager/app/util/util.go
Outdated
defaultOptions := []string{ | ||
"--long-query-guard=3600", | ||
"--tidb-force-priority=LOW_PRIORITY", | ||
"--verbose=3", | ||
"--compress-protocol", | ||
"--threads=16", | ||
"--rows=10000", | ||
"--skip-tz-utc", | ||
} | ||
defaultTableRegexOptions := []string{ | ||
"--regex", | ||
"^(?!(mysql|test|INFORMATION_SCHEMA|PERFORMANCE_SCHEMA|METRICS_SCHEMA|INSPECTION_SCHEMA))", | ||
} |
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.
Move these to the var definitions at the beginning of the file?
…idb-operator into customizing-mydumper-options
Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>
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.
LGTM
/run-e2e-tests |
/run-e2e-tests |
should this be cherry-picked in 1.1? |
/run-cherry-picker |
1 similar comment
/run-cherry-picker |
* enable customizing mydumper options in CRD backup * add unit tests
cherry pick to release-1.1 in PR #2453 |
What problem does this PR solve?
This PR resolve #2391
What is changed and how does it work?
Support specifying mydumper options in the backup which can be used during backup with mydumper.
The mydumper options can refer to this doc
backup CR example:
Check List
Tests
Code changes
Related changes
Does this PR introduce a user-facing change?: