postgresql_server: adjust backups for db-datanommer02

Currently backups are taking 17-18 hours with 4 threads.
Now that we have 16 cpus defined there, lets bump that up to 8 and see
if that lowers things much. If not we can look at moving to another
compression, but the database is very large so lots of compression is
good to save disk space.

Also filter out another output of the backup job that causes cron
emails.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2024-05-20 10:28:04 -07:00
parent f1d86f7ac2
commit abee63c966
3 changed files with 26 additions and 4 deletions

View file

@ -1,5 +1,5 @@
{% if inventory_hostname == 'db-datanommer02.iad2.fedoraproject.org' %}
0 0 * * * postgres /usr/local/bin/backup-database {{ item }} |& grep -Ev 'warning:|hypertable|chunk|restore|data-only'
0 0 * * * postgres /usr/local/bin/backup-database {{ item }} |& grep -Ev 'warning:|hypertable|chunk|restore|data-only|continuous_agg'
{% else %}
0 0 * * * postgres /usr/local/bin/backup-database {{ item }}
{% endif %}