ganeti

Safe HaskellSafe-Infered

Ganeti.HTools.Program.Hroller

Description

Cluster rolling maintenance helper.

Synopsis

Documentation

options :: IO [OptType]Source

Options list and functions.

arguments :: [ArgCompletion]Source

The list of arguments supported by the program.

greedyClearNodes :: ((List, List) -> Ndx -> [Idx]) -> ([Idx] -> [Ndx] -> (List, List) -> Result (List, List)) -> [Ndx] -> [Ndx] -> (List, List) -> Result ([Ndx], (List, List))Source

clearNodes :: [Ndx] -> [Ndx] -> (List, List) -> Result ([Ndx], (List, List))Source

partitionNodes :: ([Ndx] -> [Ndx] -> (List, List) -> Result ([Ndx], (List, List))) -> [Ndx] -> [Ndx] -> (List, List) -> Result [([Ndx], (List, List))]Source

getStats :: [(String, ColorVertMap)] -> StringSource

hasGroup :: Maybe Group -> Node -> BoolSource

hasTag :: Maybe [String] -> Node -> BoolSource

masterLast :: [([Node], a)] -> [([Node], a)]Source

getMoves :: (List, List) -> (List, List) -> [(Instance, (Node, Maybe Node))]Source

main :: Options -> [String] -> IO ()Source

Main function.