Revision 66dac8e0

b/Ganeti/HTools/Types.hs
53 53
-- | A separate name for the cluster score type.
54 54
type Score = Double
55 55

  
56
-- | The description of an instance placement.
57
type Placement = ( Idx   -- ^ The index of the instance being moved
58
                 , Ndx   -- ^ New primary node
59
                 , Ndx   -- ^ New secondary node
60
                 , IMove -- ^ The move being performed
61
                 , Score -- ^ The score of the cluster after this move
62
                 )
56
-- | The description of an instance placement. It contains the
57
-- instance index, the new primary and secondary node, the move being
58
-- performed and the score of the cluster after the move.
59
type Placement = (Idx, Ndx, Ndx, IMove, Score)
63 60

  
64 61
-- | An instance move definition
65 62
data IMove = Failover                -- ^ Failover the instance (f)

Also available in: Unified diff