ganeti

Safe HaskellNone

Ganeti.HTools.Cluster.Metrics

Description

Implementation of the cluster metric

Synopsis

Documentation

data NodeValues Source

Constructors

NodeValues 

Fields

nv_free_mem_cv :: Double
 
nv_free_disk_cv :: Double
 
nv_vcpu_ratio_cv :: Double
 
nv_spindles_cv :: Double
 
nv_fail_n1 :: Double
 
nv_reserved_mem_cv :: Double
 
nv_offline_all_cnt :: Double
 
nv_offline_pri_cnt :: Double
 
nv_cpu_load_cv :: Double
 
nv_mem_load_cv :: Double
 
nv_disk_load_cv :: Double
 
nv_net_load_cv :: Double
 
nv_pri_tags_score :: Double
 
nv_location_score :: Double
 
nv_location_exclusion_score :: MapData
 
nv_free_mem_cv_forth :: Double
 
nv_free_disk_cv_forth :: Double
 
nv_vcpu_ratio_cv_forth :: Double
 
nv_spindles_cv_forth :: Double
 
nv_reserved_mem_rtotal :: Double
 

updateClusterStatisticsTwice :: ClusterStatistics -> (Node, Node) -> (Node, Node) -> ClusterStatisticsSource

Update a cluster statistics twice.

compCVNodes :: [Node] -> DoubleSource

Compute the total cluster store given the nodes.

compCV :: List -> DoubleSource

Wrapper over compCVNodes for callers that have a List.

printStats :: String -> List -> StringSource

Shows statistics for a given node list.