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

Use vtbackup in scheduled backups #17869

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion examples/operator/101_initial_cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ kind: VitessCluster
metadata:
name: example
spec:
backup:
engine: xtrabackup
locations:
- volume:
hostPath:
path: /tmp
type: Directory
images:
vtctld: vitess/lite:latest
vtadmin: vitess/vtadmin:latest
Expand All @@ -15,7 +22,7 @@ spec:
vtbackup: vitess/lite:latest
vtorc: vitess/lite:latest
mysqld:
mysql80Compatible: mysql:8.0.40
mysql80Compatible: vitess/lite:latest
mysqldExporter: prom/mysqld-exporter:v0.14.0
cells:
- name: zone1
Expand Down
7 changes: 7 additions & 0 deletions examples/operator/201_customer_tablets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ kind: VitessCluster
metadata:
name: example
spec:
backup:
engine: xtrabackup
locations:
- volume:
hostPath:
path: /tmp
type: Directory
images:
vtctld: vitess/lite:latest
vtadmin: vitess/vtadmin:latest
Expand Down
7 changes: 7 additions & 0 deletions examples/operator/302_new_shards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ kind: VitessCluster
metadata:
name: example
spec:
backup:
engine: xtrabackup
locations:
- volume:
hostPath:
path: /tmp
type: Directory
images:
vtctld: vitess/lite:latest
vtadmin: vitess/vtadmin:latest
Expand Down
7 changes: 7 additions & 0 deletions examples/operator/306_down_shard_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ kind: VitessCluster
metadata:
name: example
spec:
backup:
engine: xtrabackup
locations:
- volume:
hostPath:
path: /tmp
type: Directory
images:
vtctld: vitess/lite:latest
vtadmin: vitess/vtadmin:latest
Expand Down
26 changes: 13 additions & 13 deletions examples/operator/401_scheduled_backups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ spec:
path: /tmp
type: Directory
schedules:
- name: "every-minute-customer"
schedule: "* * * * *"
- name: "commerce"
schedule: "*/2 * * * *"
resources:
requests:
cpu: 100m
Expand All @@ -23,14 +23,11 @@ spec:
failedJobsHistoryLimit: 3
jobTimeoutMinute: 5
strategies:
- name: BackupShard
keyspace: "customer"
shard: "-80"
- name: BackupShard
keyspace: "customer"
shard: "80-"
- name: "every-minute-commerce"
schedule: "* * * * *"
- name: commerce_x
keyspace: "commerce"
shard: "-"
- name: "customer"
schedule: "*/2 * * * *"
resources:
requests:
cpu: 100m
Expand All @@ -41,9 +38,12 @@ spec:
failedJobsHistoryLimit: 3
jobTimeoutMinute: 5
strategies:
- name: BackupShard
keyspace: "commerce"
shard: "-"
- name: customer_80-x
keyspace: "customer"
shard: "80-"
- name: customer_x-80
keyspace: "customer"
shard: "-80"
images:
vtctld: vitess/lite:latest
vtadmin: vitess/vtadmin:latest
Expand Down
11 changes: 7 additions & 4 deletions examples/operator/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ spec:
cluster:
type: string
concurrencyPolicy:
default: Forbid
enum:
- Allow
- Forbid
Expand Down Expand Up @@ -491,8 +492,6 @@ spec:
example: commerce
type: string
name:
enum:
- BackupShard
type: string
shard:
example: '-'
Expand Down Expand Up @@ -542,6 +541,11 @@ spec:
lastScheduledTime:
format: date-time
type: string
lastScheduledTimes:
additionalProperties:
format: date-time
type: string
type: object
type: object
type: object
served: true
Expand Down Expand Up @@ -2028,6 +2032,7 @@ spec:
type: string
type: object
concurrencyPolicy:
default: Forbid
enum:
- Allow
- Forbid
Expand Down Expand Up @@ -2099,8 +2104,6 @@ spec:
example: commerce
type: string
name:
enum:
- BackupShard
type: string
shard:
example: '-'
Expand Down
Loading