selfcheck.py: add gzclient and gzserver to cpu eaters whitelist

This commit is contained in:
Oleg Kalachev
2021-11-19 09:47:07 +03:00
parent d7b6968fee
commit bb318ce93f

View File

@@ -620,7 +620,7 @@ def check_boot_duration():
@check('CPU usage')
def check_cpu_usage():
WHITELIST = 'nodelet',
WHITELIST = 'nodelet', 'gzclient', 'gzserver'
CMD = "top -n 1 -b -i | tail -n +8 | awk '{ printf(\"%-8s\\t%-8s\\t%-8s\\n\", $1, $9, $12); }'"
output = subprocess.check_output(CMD, shell=True).decode()
processes = output.split('\n')