|
| Ganeti.HTools.Program.Hcheck |
|
|
| Description |
| Cluster checker.
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
| Options list and functions.
|
|
|
| Check phase - are we before (initial) or after rebalance.
| | Constructors | |
|
|
|
| Level of presented statistics.
| | Constructors | |
|
|
|
| A type alias for a group index and node/instance lists.
|
|
|
| A type alias for group stats.
|
|
|
| Prefix for machine readable names.
|
|
| commonData :: [(String, String)] | Source |
|
| Data showed both per group and per cluster.
|
|
| groupData :: [(String, String)] | Source |
|
| Data showed per group.
|
|
| clusterData :: [(String, String)] | Source |
|
| Data showed per cluster.
|
|
|
| Phase-specific prefix for machine readable version.
|
|
|
| Level-specific prefix for machine readable version.
|
|
|
| Machine-readable keys to show depending on given level.
|
|
|
| Description of phases for human readable version.
|
|
|
| Description to show depending on given level.
|
|
|
| Human readable prefix for statistics.
|
|
| printKeysHTC :: [(String, String)] -> IO () | Source |
|
| Format a list of key, value as a shell fragment.
|
|
|
| :: Bool | Whether the result should be machine readable
| | -> Bool | Value to be converted to string
| | -> String | | | Prepare string from boolean value.
|
|
|
|
| Print mapping from group idx to group uuid (only in machine
readable mode).
|
|
|
| Prepare a single key given a certain level and phase of simulation.
|
|
|
| :: Int | Verbosity level
| | -> Bool | If the output should be machine readable
| | -> Level | Level on which we are printing
| | -> Phase | Current phase of simulation
| | -> [String] | Values to print
| | -> Maybe String | Additional data for groups
| | -> IO () | | | Print all the statistics for given level and phase.
|
|
|
|
| Extract name or idx from group.
|
|
| prepareGroupValues :: [Int] -> Double -> [String] | Source |
|
| Prepare values for group.
|
|
| prepareClusterValues :: Bool -> [Int] -> [Bool] -> [String] | Source |
|
| Prepare values for cluster.
|
|
|
| Print all the statistics on a group level.
|
|
| printClusterStats :: Int -> Bool -> Phase -> [Int] -> Bool -> IO () | Source |
|
| Print all the statistics on a cluster (global) level.
|
|
| clusterNeedsRebalance :: [Int] -> Bool | Source |
|
| Check if any of cluster metrics is non-zero.
|
|
|
| Check group for N+1 hapiness, conflicts of primaries on nodes and
instances residing on offline nodes.
|
|
|
| Use Hbal's iterateDepth to simulate group rebalance.
|
|
|
| Simulate group rebalance if group's score is not good
|
|
|
| :: Bool | Whether to simulate rebalance
| | -> Options | Command line options
| | -> [GroupInfo] | Group data
| | -> IO [GroupInfo] | | | Decide whether to simulate rebalance.
|
|
|
| printFinalHTC :: Bool -> IO () | Source |
|
| Prints the final OK marker in machine readable output.
|
|
|
| Main function.
|
|
| Produced by Haddock version 2.6.0 |