In tiered allocation, cut non-promising shrinking tries
authorKlaus Aehlig <aehlig@google.com>
Wed, 19 Jun 2013 16:43:21 +0000 (18:43 +0200)
committerKlaus Aehlig <aehlig@google.com>
Thu, 20 Jun 2013 05:12:26 +0000 (07:12 +0200)
commitf9e7e33171075daaf5ba0afa3a33e6d1c09d2240
treed3368195f45212bbbb114643f79943f3df2e4422
parentb22106d75bd880d4199a49cb952eca0d7dc6d953
In tiered allocation, cut non-promising shrinking tries

The heuristics for tiered allocation has been improved in that it
chooses to shrink such a resource next where by shrinking only this
resource a valid allocation can be made, if such a resource exists.
In order to decide whether such a resource exists, all potential
sizes of this resource are verified. We can improve performance by
cutting, as soon a potential allocation of an instance is no longer
blocked on this resource.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
src/Ganeti/HTools/Cluster.hs