Revision 55bd1414 htools/Ganeti/HTools/Instance.hs
b/htools/Ganeti/HTools/Instance.hs | ||
---|---|---|
35 | 35 |
, instanceOffline |
36 | 36 |
, instanceNotOffline |
37 | 37 |
, instanceDown |
38 |
, usesSecMem |
|
38 | 39 |
, applyIfOnline |
39 | 40 |
, setIdx |
40 | 41 |
, setName |
... | ... | |
114 | 115 |
applyIfOnline :: Instance -> (a -> a) -> a -> a |
115 | 116 |
applyIfOnline = applyIf . instanceNotOffline |
116 | 117 |
|
118 |
-- | Helper for determining whether an instance's memory needs to be |
|
119 |
-- taken into account for secondary memory reservation. |
|
120 |
usesSecMem :: Instance -> Bool |
|
121 |
usesSecMem inst = instanceNotOffline inst && autoBalance inst |
|
122 |
|
|
117 | 123 |
-- | Constant holding the local storage templates. |
118 | 124 |
-- |
119 | 125 |
-- /Note:/ Currently Ganeti only exports node total/free disk space |
Also available in: Unified diff