Charmed MySQL
- By Canonical Data Platform
- Cloud
Channel | Revision | Published | Runs on |
---|---|---|---|
8.0/stable | 240 | 20 Jun 2024 | |
8.0/candidate | 275 | 12 Sep 2024 | |
8.0/candidate | 274 | 12 Sep 2024 | |
8.0/beta | 275 | 23 Aug 2024 | |
8.0/beta | 274 | 23 Aug 2024 | |
8.0/edge | 287 | 13 Sep 2024 | |
8.0/edge | 286 | 13 Sep 2024 |
juju deploy mysql --channel 8.0/stable
Deploy universal operators easily with Juju, the Universal Operator Lifecycle Manager.
Platform:
Configure S3 for RadosGW
Hint: Use Juju 3. Otherwise replace
juju run ...
withjuju run-action --wait ...
andjuju integrate
withjuju relate
for Juju 2.9.
Charmed MySQL backup can be stored on any S3 compatible storage, e.g. on Ceph via RadosGW. The S3 access and configurations are managed with the s3-integrator charm. Deploy and configure the s3-integrator charm for RadosGW (click here to backup on AWS S3):
# Install MinIO client and create a bucket:
mc config host add dest https://radosgw.mycompany.fqdn <access-key> <secret-key> --api S3v4 --lookup path
mc mb dest/backups-bucket
juju deploy s3-integrator
juju run s3-integrator/leader sync-s3-credentials access-key=<access-key> secret-key=<secret-key>
juju config s3-integrator \
endpoint="https://radosgw.mycompany.fqdn" \
bucket="backups-bucket" \
path="/mysql" \
region="" \
s3-api-version="" \
s3-uri-style="path"
To pass these configurations to Charmed MySQL, relate the two applications:
juju integrate s3-integrator mysql
You can create/list/restore backups now:
juju run mysql/leader list-backups
juju run mysql/leader create-backup
juju run mysql/leader list-backups
juju run mysql/leader restore backup-id=<backup-id-here>
You can also update your S3 configuration options after relating, using:
juju config s3-integrator <option>=<value>
The s3-integrator charm accepts many configurations - enter whatever configurations are necessary for your S3 storage.