Revision 827ac163
b/lib/cmdlib.py | ||
---|---|---|
2429 | 2429 |
# we already list instances living on such nodes, and that's |
2430 | 2430 |
# enough warning |
2431 | 2431 |
continue |
2432 |
#TODO(dynmem): use MINMEM for checking |
|
2433 | 2432 |
#TODO(dynmem): also consider ballooning out other instances |
2434 | 2433 |
for prinode, instances in n_img.sbp.items(): |
2435 | 2434 |
needed_mem = 0 |
2436 | 2435 |
for instance in instances: |
2437 | 2436 |
bep = cluster_info.FillBE(instance_cfg[instance]) |
2438 | 2437 |
if bep[constants.BE_AUTO_BALANCE]: |
2439 |
needed_mem += bep[constants.BE_MAXMEM]
|
|
2438 |
needed_mem += bep[constants.BE_MINMEM]
|
|
2440 | 2439 |
test = n_img.mfree < needed_mem |
2441 | 2440 |
self._ErrorIf(test, constants.CV_ENODEN1, node, |
2442 | 2441 |
"not enough memory to accomodate instance failovers" |
Also available in: Unified diff