ganeti

Safe HaskellSafe-Infered

Ganeti.HTools.Program.Hbal

Description

Cluster rebalancer.

Synopsis

Documentation

options :: IO [OptType]Source

Options list and functions.

arguments :: [ArgCompletion]Source

The list of arguments supported by the program.

iterateDepthSource

Arguments

:: Bool

Whether to print moves

-> Table

The starting table

-> Int

Remaining length

-> Bool

Allow disk moves

-> Bool

Allow instance moves

-> Bool

Resrict migration

-> Int

Max node name len

-> Int

Max instance name len

-> [MoveJob]

Current command list

-> Score

Score at which to stop

-> Score

Min gain limit

-> Score

Min score gain

-> Bool

Enable evacuation mode

-> IO (Table, [MoveJob])

The resulting table and commands

Start computing the solution at the given depth and recurse until we find a valid solution or we exceed the maximum depth.

printStats :: List -> List -> IO ()Source

execCancelWrapper :: Annotator -> String -> List -> List -> IORef Int -> [JobSet] -> IO (Result ())Source

execJobSet :: Annotator -> String -> List -> List -> IORef Int -> [JobSet] -> IO (Result ())Source

maybeExecJobs :: Options -> [a] -> List -> List -> [JobSet] -> IO (Result ())Source

handleSigInt :: IORef Int -> IO ()Source

handleSigTerm :: IORef Int -> IO ()Source

execWithCancel :: Annotator -> String -> List -> List -> [JobSet] -> IO (Result ())Source

selectGroup :: Options -> List -> List -> List -> IO (String, (List, List))Source

checkCluster :: Int -> List -> List -> IO ()Source

checkGroup :: Int -> String -> List -> List -> IO ()Source

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

Main function.