ganeti-3.1: Cluster-based virtualization management software
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ganeti.HTools.Cluster.Metrics

Description

Implementation of the cluster metric

Synopsis

Documentation

compCV :: List -> Double #

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.