Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ganeti.HTools.Cluster.Utils
Description
Utility functions for cluster operations
Documentation
splitCluster :: List -> List -> [(Gdx, (List, List))] #
Splits a cluster into the component node groups.
Arguments
:: List | The node list; only used for node names, so any version is good (before or after the operation) |
-> List | The instance list; also used for names only |
-> Idx | The index of the instance being moved |
-> IMove | The actual move to be described |
-> [OpCode] | The list of opcodes equivalent to the given move |
Convert a placement into a list of OpCodes (basically a job).
instancePriGroup :: List -> Instance -> Gdx #
Computes the group of an instance per the primary node.