Browse Source

Average over 3 seconds

to avoid alerting on reallyu short cpu spikes.
pull/11/head
Egon Rijpkema 3 years ago
parent
commit
0000ff1c2d
  1. 2
      roles/kill_memory_hogs/tasks/main.yml

2
roles/kill_memory_hogs/tasks/main.yml

@ -26,5 +26,5 @@ @@ -26,5 +26,5 @@
name: Kill jobs that are using excessive memory.
minute: '*/2'
user: root
job: '/usr/bin/python36 /opt/kill_hogs/kill_hogs.py --slack --email'
job: '/usr/bin/python36 /opt/kill_hogs/kill_hogs.py --slack --email --cpu_threshold 700 --cpu_interval 3'
cron_file: kill_memory_hogs

Loading…
Cancel
Save