Safe Haskell | None |
---|
Implementation of instance moves in a cluster.
Documentation
instanceNodes :: List -> Instance -> (Ndx, Ndx, Node, Node) Source #
Extracts the node pairs for an instance. This can fail if the instance is single-homed. FIXME: this needs to be improved, together with the general enhancement for handling non-DRBD moves.
setInstanceLocationScore Source #
:: Instance | the original instance |
-> Node | the primary node of the ^ instance |
-> Maybe Node | the secondary node of the ^ instance |
-> Instance | the instance with the location score updated |
Sets the location score of an instance, given its primary and secondary node.