Skip to content

Moco Backups of big dbs #415

Answered by ymmt2005
pavel1337 asked this question in Q&A
May 30, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

moco-backup is going to dump DBs to a folder and then pipe-compress it into S3?

correct, but compression takes place beforehand.

does it mean I need to have ~600GB free space for the moco-backup container?

not correct. moco uses mysqlsh for backup that compresses data with zstd on the fly.
The result will be much smaller.
The exact directory usage can be checked through MySQLCluster's status.backup.workDirUsage field after the backup.

Can I set up a storage-class for it?

Yes. We are taking backup of database of ~ 2 TB using TopoLVM for generic ephemeral volume.
Specify the volume spec in BackupPolicy at spec.jobConfig.workVolume.
https://github.com/cybozu-go/moco/blob/main/docs/usag…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@pavel1337
Comment options

@pavel1337
Comment options

@pavel1337
Comment options

@ymmt2005
Comment options

Answer selected by ymmt2005
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants