Handle correctly offline nodes in cluster scoring
authorIustin Pop <iustin@google.com>
Sat, 21 Mar 2009 14:48:12 +0000 (15:48 +0100)
committerIustin Pop <iustin@google.com>
Sat, 21 Mar 2009 14:48:12 +0000 (15:48 +0100)
commit1977763827b865f098a573b48459ddaaf882890e
tree1192659e943726089dc2a8d2b139222ac48a9607
parent352806f7dc06a05ca51430926c1b3fa21d2daa0d
Handle correctly offline nodes in cluster scoring

This patch changes two things with regard to offline nodes:
  - first, it only calculates the various coefficients across online
nodes
  - second, it adds a new score denoting the percentage of instances
which live on such nodes

The first change allows correct score computation in presence of offline
nodes (whose properties we don't need to take into account), while the
second change actively evacuates offline nodes.
Ganeti/HTools/Cluster.hs