mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
Revert "Limit Borg CPU usage on single vCPU servers to 50%"
This reverts commit f5b566fabbc07464d3b3a9b506b890ce15b82e9a. We no longer have cloud servers with 1-vCPU so this isn't needed.
This commit is contained in:
parent
c819f8bc88
commit
923768917b
@ -3,5 +3,4 @@ Description=Borg backup (offsite)
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
{% include 'borg-backup-cpu-quota.j2' %}
|
||||
ExecStart=/usr/local/bin/borg-backup-offsite.sh
|
@ -6,5 +6,4 @@ Before=borg-backup-offsite.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
{% include 'borg-backup-cpu-quota.j2' %}
|
||||
ExecStart=/usr/local/bin/borg-backup.sh
|
@ -48,14 +48,12 @@
|
||||
- name: Create mysql backup directory
|
||||
file: path={{ backup_mysql_dir }} state=directory owner=root group=root mode=0755
|
||||
|
||||
- name: Install systemd services for backup
|
||||
template: src={{ item }}.j2 dest=/etc/systemd/system/{{ item }} owner=root group=root mode=0644
|
||||
- name: Install systemd timer and services for backup
|
||||
copy: src={{ item }} dest=/etc/systemd/system/{{ item }} owner=root group=root mode=0644
|
||||
with_items:
|
||||
- borg-backup.timer
|
||||
- borg-backup.service
|
||||
- borg-backup-offsite.service
|
||||
|
||||
- name: Install systemd timer for backup
|
||||
copy: src=borg-backup.timer dest=/etc/systemd/system/borg-backup.timer owner=root group=root mode=0644
|
||||
|
||||
- name: Activate systemd timer for backup
|
||||
systemd: name=borg-backup.timer enabled=yes state=started daemon-reload=yes
|
||||
|
@ -1,4 +0,0 @@
|
||||
{% if ansible_processor_vcpus == 1 %}
|
||||
{# Limit CPU usage to avoid triggering a HostHighCpuLoad alert #}
|
||||
CPUQuota=50%
|
||||
{% endif %}
|
Loading…
Reference in New Issue
Block a user