Revision 33e17565 htools/Ganeti/HTools/Cluster.hs
b/htools/Ganeti/HTools/Cluster.hs  

139  139 
deriving (Show, Read) 
140  140  
141  141 
  Cluster statistics data type. 
142 
data CStats = CStats { csFmem :: Integer  ^ Cluster free mem


143 
, csFdsk :: Integer  ^ Cluster free disk


144 
, csAmem :: Integer  ^ Cluster allocatable mem


145 
, csAdsk :: Integer  ^ Cluster allocatable disk


146 
, csAcpu :: Integer  ^ Cluster allocatable cpus


147 
, csMmem :: Integer  ^ Max node allocatable mem


148 
, csMdsk :: Integer  ^ Max node allocatable disk


149 
, csMcpu :: Integer  ^ Max node allocatable cpu


150 
, csImem :: Integer  ^ Instance used mem


151 
, csIdsk :: Integer  ^ Instance used disk


152 
, csIcpu :: Integer  ^ Instance used cpu


153 
, csTmem :: Double  ^ Cluster total mem


154 
, csTdsk :: Double  ^ Cluster total disk


155 
, csTcpu :: Double  ^ Cluster total cpus


156 
, csVcpu :: Integer  ^ Cluster virtual cpus (if


157 
 node pCpu has been set,


158 
 otherwise 1)


159 
, csXmem :: Integer  ^ Unnacounted for mem


160 
, csNmem :: Integer  ^ Node own memory


161 
, csScore :: Score  ^ The cluster score


162 
, csNinst :: Int  ^ The total number of instances


163 
}


164 
deriving (Show, Read)


142 
data CStats = CStats 

143 
{ csFmem :: Integer  ^ Cluster free mem


144 
, csFdsk :: Integer  ^ Cluster free disk


145 
, csAmem :: Integer  ^ Cluster allocatable mem


146 
, csAdsk :: Integer  ^ Cluster allocatable disk


147 
, csAcpu :: Integer  ^ Cluster allocatable cpus


148 
, csMmem :: Integer  ^ Max node allocatable mem


149 
, csMdsk :: Integer  ^ Max node allocatable disk


150 
, csMcpu :: Integer  ^ Max node allocatable cpu


151 
, csImem :: Integer  ^ Instance used mem


152 
, csIdsk :: Integer  ^ Instance used disk


153 
, csIcpu :: Integer  ^ Instance used cpu


154 
, csTmem :: Double  ^ Cluster total mem


155 
, csTdsk :: Double  ^ Cluster total disk


156 
, csTcpu :: Double  ^ Cluster total cpus


157 
, csVcpu :: Integer  ^ Cluster virtual cpus (if


158 
 node pCpu has been set,


159 
 otherwise 1)


160 
, csXmem :: Integer  ^ Unnacounted for mem


161 
, csNmem :: Integer  ^ Node own memory


162 
, csScore :: Score  ^ The cluster score


163 
, csNinst :: Int  ^ The total number of instances


164 
} deriving (Show, Read)


165  165  
166  166 
  Currently used, possibly to allocate, unallocable. 
167  167 
type AllocStats = (RSpec, RSpec, RSpec) 
Also available in: Unified diff