Commit d7861eab authored by Azat Khuziyakhmetov's avatar Azat Khuziyakhmetov
Browse files

fixed some rules

parent b39ab7ff
......@@ -158,7 +158,10 @@ class Attributes:
node_res = res.index("NORM")
elif node_proc_ratio > 80 and node.alloc_cu > 8:
node_res = res.index("NORM")
printd("{}: {} / ({} / {}) = {}({})".format(node.name,
node.proc.cpu_usage, node.alloc_cu,
thr_cnt, node_proc_ratio, node_res))
min_res = min(node_res, min_res)
return res[min_res]
......
......@@ -39,7 +39,7 @@ RULES = [
"mem_usage_total": "LOW",
"cpu_usage_total_max": "LOW",
"node_cpu_usage_min": "LOW",
"node_cpu_usage_min": "LOW"},
"node_cpu_usage_max": "LOW"},
"msg": "The CPU usage of the job is low on all nodes, please request appropriate amount of resources"},
{
"attrs": {
......@@ -48,7 +48,7 @@ RULES = [
"mem_usage_total": "NORM",
"cpu_usage_total_max": "LOW",
"node_cpu_usage_min": "LOW",
"node_cpu_usage_min": "LOW"},
"node_cpu_usage_max": "LOW"},
"msg": "The CPU usage of the job is low on all nodes. Please check if the job is running properly"},
{
"attrs": {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment