Set CPUQuota to 1/4 of available CPU
This commit is contained in:
parent
ca430781b4
commit
ac18c3abc7
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,9 @@ Description=Restic backup
|
|||
[Service]
|
||||
Type=oneshot
|
||||
User={{ restic_user }}
|
||||
|
||||
CPUQuota={{ 25 * ansible_processor_vcpus }}%
|
||||
|
||||
{% if restic_ssh_enabled %}
|
||||
Environment="RESTIC_REPOSITORY=sftp:{{ restic_ssh_host }}:{{ restic_repository_name }}"
|
||||
{% else %}
|
||||
|
|
Loading…
Reference in a new issue