| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Ganeti.HTools.Program.Hbal
Description
Cluster rebalancer.
Synopsis
- main :: Options -> [String] -> IO ()
- options :: IO [OptType]
- arguments :: [ArgCompletion]
- iterateDepth :: Bool -> AlgorithmOptions -> Table -> Int -> Int -> Int -> [MoveJob] -> Score -> IO (Table, [MoveJob])
Documentation
arguments :: [ArgCompletion] #
The list of arguments supported by the program.
Arguments
| :: Bool | Whether to print moves |
| -> AlgorithmOptions | Algorithmic options to apply |
| -> Table | The starting table |
| -> Int | Remaining length |
| -> Int | Max node name len |
| -> Int | Max instance name len |
| -> [MoveJob] | Current command list |
| -> Score | Score at which to stop |
| -> 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.