Renice disk I/O for MongoDB Backups
Renice disk I/O for MongoDB Backups

What
Since deploying Mongo s3 backups to staging and production, 2nd line have reported alerts for
breaching disk ops thresholds.  The complete backup process consists of:
- Dumping databases to disk
- Archiving data
- Encrypting data
- Uploading data
This is a resource intensive process and may require some performance tuning.

How
Prefix cron  commands `ionice`.  Specify the schuduling class flag of `2` and a priority of `6`.
The changes lower the priority of the backup jobs in terms of disk ops.

alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet