Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ganeti.HTools.Cluster.Metrics
Description
Implementation of the cluster metric
Synopsis
- compCV :: List -> Double
- compCVfromStats :: [Statistics] -> Double
- compCVNodes :: [Node] -> Double
- compClusterStatistics :: [Node] -> [Statistics]
- updateClusterStatisticsTwice :: [Statistics] -> (Node, Node) -> (Node, Node) -> [Statistics]
- optimalCVScore :: List -> Double
- printStats :: String -> List -> String
Documentation
Wrapper over compCVNodes
for callers that have a List
.
compCVfromStats :: [Statistics] -> Double #
Compute the cluster score from its statistics
compCVNodes :: [Node] -> Double #
Compute the total variance.
compClusterStatistics :: [Node] -> [Statistics] #
Compute the statistics of a cluster.
updateClusterStatisticsTwice :: [Statistics] -> (Node, Node) -> (Node, Node) -> [Statistics] #
Update a cluster statistics twice.
optimalCVScore :: List -> Double #
Compute the lower bound of the cluster score, i.e., the sum of the minimal values for all cluster score values that are not 0 on a perfectly balanced cluster.
printStats :: String -> List -> String #
Shows statistics for a given node list.