Commit 0c860cff authored by Iustin Pop's avatar Iustin Pop
Browse files

Convert n1_score metric from % to count

This increases the priority of fixing N+1 failures compared to balancing
metrics.
parent 8ce618f3
......@@ -177,7 +177,7 @@ totalResources nl =
detailedCVNames :: [String]
detailedCVNames = [ "free_mem_cv"
, "free_disk_cv"
, "n1_score"
, "n1_cnt"
, "reserved_mem_cv"
, "offline_all_cnt"
, "offline_pri_cnt"
......@@ -202,9 +202,8 @@ compDetailedCV nl =
-- metric: disk covariance
dsk_cv = varianceCoeff dsk_l
n1_l = length $ filter Node.failN1 nodes
-- metric: ratio of failN1 nodes
n1_score = fromIntegral n1_l /
fromIntegral (length nodes)::Double
-- metric: count of failN1 nodes
n1_score = fromIntegral n1_l::Double
res_l = map Node.pRem nodes
-- metric: reserved memory covariance
res_cv = varianceCoeff res_l
......
Markdown is supported
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