-
Notifications
You must be signed in to change notification settings - Fork 500
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
refine fullbackup #570
refine fullbackup #570
Conversation
{{ .Values.backupOptions }} | ||
|
||
echo "Reset TiKV GC life time to 10m" | ||
/usr/bin/mysql -h${host} -P4000 -u${TIDB_USER} -p${TIDB_PASSWORD} -Nse "update mysql.tidb set variable_value='10m' where variable_name='tikv_gc_life_time';" |
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.
It looks like this assumes 10 minutes was previously set, but I think we need to get the original value and set it back to that original value.
/run-e2e-tests |
1 similar comment
/run-e2e-tests |
- -pd-urls=http://{{ .Values.clusterName }}-pd:2379 | ||
- -cmd=generate_meta | ||
- -data-dir=/savepoint-dir | ||
command: ["/bin/sh", "-c", "cp /binlogctl /shared-dir/"] |
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.
The initContainer only copy binlogctl to the backup container
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 on TikV failover check bugfix
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 |
no enough space left? |
/run-e2e-tests |
/run-e2e-tests |
@@ -1,26 +1,46 @@ | |||
set -euo pipefail | |||
|
|||
host=`echo {{ .Values.clusterName }}_TIDB_SERVICE_HOST | tr '[a-z]' '[A-Z]' | tr '-' '_'` | |||
host_env=`echo {{ .Values.clusterName }}_TIDB_SERVICE_HOST | tr '[a-z]' '[A-Z]' | tr '-' '_'` | |||
host=`eval echo '${'$host_env'}'` |
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.
host=$(getent hosts {{ .Values.clusterName }}-tidb | head | awk '{print $1}')
…operator into refine-fullbackup
/run-e2e-tests |
/run-e2e-tests |
@tennix ptal |
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
What problem does this PR solve?
What is changed and how it works?
This pr passed the stability tests on cluster 1.
Check List
Tests
Code changes
Side effects
Related changes
Does this PR introduce a user-facing change?: