ganeti

Safe HaskellSafe-Infered

Ganeti.HTools.Program.Hspace

Description

Cluster space sizing

Synopsis

Documentation

options :: IO [OptType]Source

Options list and functions.

arguments :: [ArgCompletion]Source

The list of arguments supported by the program.

data Phase Source

Constructors

PInitial 
PFinal 
PTiered 

htsPrefix :: StringSource

effFn :: (CStats -> Integer) -> (CStats -> Double) -> CStats -> DoubleSource

memEff :: CStats -> DoubleSource

dskEff :: CStats -> DoubleSource

cpuEff :: CStats -> DoubleSource

spnEff :: CStats -> DoubleSource

statsData :: [(String, CStats -> String)]Source

specData :: [(String, RSpec -> String)]Source

specDataSpn :: [(String, RSpec -> String)]Source

clusterData :: [(String, CStats -> String)]Source

clusterDataSpn :: [(String, CStats -> String)]Source

printStats :: Phase -> CStats -> [(String, String)]Source

printFRScores :: List -> List -> [(FailMode, Int)] -> IO ()Source

printResults :: Bool -> List -> List -> Int -> Int -> [(FailMode, Int)] -> IO ()Source

printFinalHTS :: Bool -> IO ()Source

formatSpecMap :: [(RSpec, Int)] -> [String]Source

formatRSpec :: String -> AllocInfo -> [(String, String)]Source

printKeysHTS :: [(String, String)] -> IO ()Source

printAllocationMap :: Int -> String -> List -> [Instance] -> IO ()Source

formatResources :: a -> [(String, a -> String)] -> StringSource

printCluster :: Bool -> CStats -> Int -> Bool -> IO ()Source

printISpec :: Bool -> RSpec -> SpecType -> DiskTemplate -> Bool -> IO ()Source

printTiered :: Bool -> [(RSpec, Int)] -> List -> List -> [(FailMode, Int)] -> IO ()Source

printClusterEff :: CStats -> Bool -> IO ()Source

failureReason :: [(FailMode, Int)] -> StringSource

sortReasons :: [(FailMode, Int)] -> [(FailMode, Int)]Source

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

Main function.