DEV-568: Decreased process priority and count of parallel processes for pg backup task

feature/DEV-655
Michael Haehnel 3 years ago committed by Görz, Friedrich
parent ccdff552f1
commit 0b0cb3dd95

@ -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 - | pigz -p 4 > {{ backup_file }} && \ /usr/bin/pg_basebackup -Ft -X fetch -D - | nice -n15 pigz -p 2 > {{ backup_file }} && \
gpg --encrypt --recipient "smardigo automation {{ stage | upper }}" --trust-model always {{ backup_file }} && \ nice -n15 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