DEV-831: increase niceness for gpg and pigz process

qa
friedrich goerz 3 years ago
parent 5cd09c7682
commit 8f0927c7ef

@ -44,8 +44,8 @@
backup_file: '{{ backup_dest_dir }}/basebackup_{{ current_date_time }}.tar.gz' backup_file: '{{ backup_dest_dir }}/basebackup_{{ current_date_time }}.tar.gz'
shell: | shell: |
set -o pipefail set -o pipefail
/usr/bin/pg_basebackup -Ft -X fetch -D - | nice -n15 pigz -p 2 > {{ backup_file }} && \ /usr/bin/pg_basebackup -Ft -X fetch -D - | nice -n {{ postgres_backup_niceness_pigz | default(8) }} pigz -p 2 > {{ backup_file }} && \
nice -n15 gpg --encrypt --recipient "smardigo automation {{ stage | upper }}" --trust-model always {{ backup_file }} && \ nice -n {{ postgres_backup_niceness_gpg | default(10) }} gpg --encrypt --recipient "smardigo automation {{ stage | upper }}" --trust-model always {{ backup_file }} && \
rm {{ backup_file }} rm {{ backup_file }}
args: args:
executable: /bin/bash executable: /bin/bash

Loading…
Cancel
Save