Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrow committed Sep 3, 2024
1 parent 4c5bb37 commit 0998f23
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion k8s/jobs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,20 @@ Should be submitted to the correct cluster using `kubectl create -f changeReplic
Should be run immediately after running resetOtherSqlSecretsJob.yaml

This updates the replication password by logging into the secondary pod (not just the service which may already have become unavailable due to replication lag) using the root password.
This job will need updating if there is more than one replica server to add each additional replica server.
This job will need updating if there is more than one replica server to add each additional replica server.

## singleWikiBackup.sh
Uses the ENV `DATABASE_NAME`

This creates a PVC to store the backups of single wiki databases.
It then creates a job which uses mysqldump to dump the db specified by `DATABASE_NAME` to .sql files which it stores
in the above PVC.
It takes the dump from the primary sql replica to try and ensure consistency.
Running this job repeatedly will overwrite the previous backup.
This PVC is not automatically deleted so care should be taken to remove it after use

## singleWikiRestore.sh
Uses the ENV `DATABASE_NAME`

This works in conjunction with `singleWikiBackup.sh` to restore a database from this temporary backup.
It uses the primary replica to write to.

0 comments on commit 0998f23

Please sign in to comment.