|
Ganeti.HTools.Program.Hspace |
|
|
Description |
Cluster space sizing
|
|
Synopsis |
|
options :: [OptType] | | | | | | htsPrefix :: String | | specPrefix :: SpecType -> String | | specDescription :: SpecType -> String | | effFn :: (CStats -> Integer) -> (CStats -> Double) -> CStats -> Double | | memEff :: CStats -> Double | | dskEff :: CStats -> Double | | cpuEff :: CStats -> Double | | statsData :: [(String, CStats -> String)] | | specData :: [(String, RSpec -> String)] | | clusterData :: [(String, CStats -> String)] | | printStats :: Phase -> CStats -> [(String, String)] | | printFRScores :: List -> List -> [(FailMode, Int)] -> IO () | | printResults :: Bool -> List -> List -> Int -> Int -> [(FailMode, Int)] -> IO () | | printFinalHTS :: Bool -> IO () | | tieredSpecMap :: [Instance] -> [(RSpec, Int)] | | formatSpecMap :: [(RSpec, Int)] -> [String] | | formatRSpec :: String -> AllocInfo -> [(String, String)] | | printAllocationStats :: List -> List -> IO () | | printKeysHTS :: [(String, String)] -> IO () | | printInstance :: List -> Instance -> [String] | | printAllocationMap :: Int -> String -> List -> [Instance] -> IO () | | formatResources :: a -> [(String, a -> String)] -> String | | printCluster :: Bool -> CStats -> Int -> IO () | | printISpec :: Bool -> RSpec -> SpecType -> DiskTemplate -> IO () | | printTiered :: Bool -> [(RSpec, Int)] -> List -> List -> [(FailMode, Int)] -> IO () | | printClusterScores :: List -> List -> IO () | | printClusterEff :: CStats -> IO () | | failureReason :: [(FailMode, Int)] -> String | | sortReasons :: [(FailMode, Int)] -> [(FailMode, Int)] | | runAllocation :: ClusterData -> Maybe AllocResult -> Result AllocResult -> RSpec -> DiskTemplate -> SpecType -> Options -> IO (FailStats, List, Int, [(RSpec, Int)]) | | instFromSpec :: RSpec -> DiskTemplate -> Int -> Instance | | main :: Options -> [String] -> IO () |
|
|
Documentation |
|
|
Options list and functions.
|
|
|
The allocation phase we're in (initial, after tiered allocs, or
after regular allocation).
| Constructors | |
|
|
|
The kind of instance spec we print.
| Constructors | |
|
|
|
Prefix for machine readable names
|
|
|
What we prefix a spec with.
|
|
|
The description of a spec.
|
|
|
Efficiency generic function.
|
|
|
Memory efficiency.
|
|
|
Disk efficiency.
|
|
|
Cpu efficiency.
|
|
|
Holds data for converting a CStats structure into
detailed statictics.
|
|
|
List holding RSpec formatting information.
|
|
|
List holding CStats formatting information.
|
|
|
Function to print stats for a given phase.
|
|
|
Print failure reason and scores
|
|
|
Print final stats and related metrics.
|
|
printFinalHTS :: Bool -> IO () | Source |
|
Prints the final OK marker in machine readable output.
|
|
|
Compute the tiered spec counts from a list of allocated
instances.
|
|
|
Formats a spec map to strings.
|
|
|
Formats "key-metrics" values.
|
|
|
Shows allocations stats.
|
|
printKeysHTS :: [(String, String)] -> IO () | Source |
|
Format a list of key/values as a shell fragment.
|
|
|
Converts instance data to a list of strings.
|
|
|
Optionally print the allocation map.
|
|
formatResources :: a -> [(String, a -> String)] -> String | Source |
|
Formats nicely a list of resources.
|
|
|
Print the cluster resources.
|
|
|
Prints the normal instance spec.
|
|
|
Prints the tiered results.
|
|
|
Displays the initial/final cluster scores.
|
|
|
Displays the cluster efficiency.
|
|
|
Computes the most likely failure reason.
|
|
|
Sorts the failure reasons.
|
|
|
|
|
|
Create an instance from a given spec.
|
|
|
Main function.
|
|
Produced by Haddock version 2.6.0 |