|
Ganeti.HTools.Program.Hbal |
|
|
Description |
Cluster rebalancer.
|
|
Synopsis |
|
|
|
Documentation |
|
|
Options list and functions.
|
|
|
:: Bool | Whether to print moves
| -> Table | The starting table
| -> Int | Remaining length
| -> Bool | Allow disk moves
| -> Bool | Allow instance moves
| -> 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.
|
|
|
|
Displays the cluster stats.
|
|
|
Saves the rebalance commands to a text file.
|
|
|
Polls a set of jobs at a fixed interval until all are finished
one way or another.
|
|
|
Check that a set of job statuses is all success.
|
|
|
Wrapper over execJobSet checking for early termination.
|
|
|
Execute an entire jobset.
|
|
|
Executes the jobs, if possible and desired.
|
|
hangleSigInt :: IORef Int -> IO () | Source |
|
Signal handler for graceful termination.
|
|
hangleSigTerm :: IORef Int -> IO () | Source |
|
Signal handler for immediate termination.
|
|
|
Runs a job set with handling of signals.
|
|
|
Select the target node group.
|
|
|
Do a few checks on the cluster data.
|
|
|
Do a few checks on the selected group data.
|
|
|
Check that we actually need to rebalance.
|
|
|
Main function.
|
|
Produced by Haddock version 2.6.0 |