Scores of all kinds are integral to how the cluster works. Practically everything from moving a resource to deciding which resource to stop in a degraded cluster is achieved by manipulating scores in some way.
Scores are calculated on a per-resource basis and any node with a negative score for a resource can’t run that resource. After calculating the scores for a resource, the cluster then chooses the node with the highest one.
INFINITY
is currently defined as 1,000,000 and addition/subtraction with it follows these three basic rules:
Any value + INFINITY
= INFINITY
Any value - INFINITY
= -INFINITY
INFINITY
- INFINITY
= -INFINITY