Skip to content
Snippets Groups Projects
Verified Commit 92376891 authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

Revert "Limit Borg CPU usage on single vCPU servers to 50%"

This reverts commit f5b566fa.

We no longer have cloud servers with 1-vCPU so this isn't needed.
parent c819f8bc
No related branches found
No related tags found
No related merge requests found
Pipeline #103327 passed
......@@ -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
{% if ansible_processor_vcpus == 1 %}
{# Limit CPU usage to avoid triggering a HostHighCpuLoad alert #}
CPUQuota=50%
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment