Browse Source

Also kill processes of g accounts

pull/11/head
B.E. Droge 3 years ago
parent
commit
aaa0dc0659
  1. 2
      roles/kill_memory_hogs/files/kill_hoggs.py

2
roles/kill_memory_hogs/files/kill_hoggs.py

@ -127,7 +127,7 @@ def kill_hogs(memory_threshold, @@ -127,7 +127,7 @@ def kill_hogs(memory_threshold,
username = proc.username()
if not ((username[0] in ('s', 'p', 'f', 'g') and username[1:].isdigit())
or username[:5] == 'umcg-'):
continue # we only kill processes of p, s and f accounts
continue # we only kill processes of p, s, f and g accounts
users[username]['memory_percent'] += proc.cached_memory_percent
users[username]['cpu_percent'] += proc.cached_cpu_percent

Loading…
Cancel
Save