From b42edb434faa0ba89efe32ecc6392b3b45d330fc Mon Sep 17 00:00:00 2001 From: lesion Date: Thu, 24 Feb 2022 14:36:45 +0100 Subject: [PATCH] nice and ionice to restic backup --- roles/stable/restic/templates/restic-backup.service.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/stable/restic/templates/restic-backup.service.j2 b/roles/stable/restic/templates/restic-backup.service.j2 index fcdde62..ff8c333 100644 --- a/roles/stable/restic/templates/restic-backup.service.j2 +++ b/roles/stable/restic/templates/restic-backup.service.j2 @@ -7,6 +7,10 @@ User={{ restic_user }} CPUQuota={{ 25 * ansible_processor_vcpus }}% +Nice=19 +IOSchedulingClass=best-effort +IOSchedulingPriority=7 + {% if restic_ssh_enabled %} Environment="RESTIC_REPOSITORY=sftp:{{ restic_ssh_host }}:{{ restic_repository_name }}" {% else %}