Skip to content

Commit

Permalink
chore: support mysql hscale and update backup target role to secondar…
Browse files Browse the repository at this point in the history
…y/follower (#105)
  • Loading branch information
wangyelei authored Dec 19, 2023
1 parent 4bf9585 commit 6065850
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addons/apecloud-mysql/templates/backuppolicytemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
backupPolicies:
- componentDefRef: mysql
target:
role: leader
role: follower
backupMethods:
- name: xtrabackup
snapshotVolumes: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
backupPolicies:
- componentDefRef: mysql
target:
role: leader
role: follower
backupMethods:
- name: volume-snapshot
snapshotVolumes: true
Expand Down
2 changes: 1 addition & 1 deletion addons/mysql/templates/backuppolicytemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
backupPolicies:
- componentDefRef: mysql
target:
role: primary
role: secondary
backupMethods:
- name: xtrabackup
snapshotVolumes: false
Expand Down
3 changes: 3 additions & 0 deletions addons/mysql/templates/clusterdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ spec:
volumeTypes:
- name: data
type: data
horizontalScalePolicy:
type: CloneVolume
backupPolicyTemplateName: mysql-backup-policy-template
podSpec:
containers:
- name: mysql
Expand Down
2 changes: 1 addition & 1 deletion addons/postgresql/templates/backuppolicytemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
backupPolicies:
- componentDefRef: postgresql
target:
role: primary
role: secondary
backupMethods:
- name: pg-basebackup
snapshotVolumes: false
Expand Down

0 comments on commit 6065850

Please sign in to comment.