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

@ -138,7 +138,7 @@
- name: Copy over backup scriplet
copy: src=backup-database dest=/usr/local/bin/backup-database mode=0755
when: not inventory_hostname.startswith('db-koji01.iad2')
when: not inventory_hostname.startswith(('db-koji01.iad2','db-datanommer'))
tags:
- postgresql
@ -148,17 +148,23 @@
tags:
- postgresql
- name: Copy over backup scriplet
copy: src=backup-database.db-datanommer02 dest=/usr/local/bin/backup-database mode=0755
when: inventory_hostname.startswith('db-datanommer02.iad2')
tags:
- postgresql
- name: Copy over anitya public backup scriplet
copy: src=backup-database.anitya dest=/usr/local/bin/backup-database.anitya mode=0755
tags:
- postgresql
when: inventory_hostname.startswith('db01.phx2') or inventory_hostname.startswith('db01.iad2')
- name: Copy over anitya publib backup cron
- name: Copy over anitya public backup cron
copy: src=cron-backup-anitya-public dest=/etc/cron.d/cron-backup-anitya-public mode=0644
tags:
- postgresql
when: inventory_hostname.startswith('db01.phx2') or inventory_hostname.startswith('db01.iad2')
when: inventory_hostname.startswith('db01.iad2')
- name: Set up some cronjobs to backup databases as configured
template: >