Commit f8d4db63 authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Add shelltest for the --ignore-dynu option of hbal



In the example, we have two nodes and 6 instances, all using external
storage. There are four small instances on one node, and two big
instances, requiring twice the amount of resources of a small instance,
on the other node. So, with respect to static data, the cluster
is already perfectly balanced. Using the default assumption of
dynamic usage, however, the cluster can be improved by moving
one small instance to the other node. The reason is, that by default,
all instances are assumed to use the same resources, and this measure
dominates, as all static resources are greatly underutilized.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
parent 14b4e045
......@@ -1181,6 +1181,7 @@ TEST_FILES = \
test/data/htools/hail-invalid-reloc.json \
test/data/htools/hail-node-evac.json \
test/data/htools/hail-reloc-drbd.json \
test/data/htools/hbal-dyn.data \
test/data/htools/hbal-excl-tags.data \
test/data/htools/hbal-split-insts.data \
test/data/htools/hspace-tiered-dualspec-exclusive.data \
......
group-01|fake-uuid-01|preferred||
node-01-000|91552|0|91040|3100|3100|32|M|fake-uuid-01|1
node-01-001|91552|0|91040|3100|3100|32|N|fake-uuid-01|1
inst-00|128|0|1|running|Y|node-01-000||ext||1
inst-01|128|0|1|running|Y|node-01-000||ext||1
inst-02|128|0|1|running|Y|node-01-000||ext||1
inst-03|128|0|1|running|Y|node-01-000||ext||1
inst-10|256|0|2|running|Y|node-01-001||ext||1
inst-11|256|0|2|running|Y|node-01-001||ext||1
|128,1,1024,1,1,1|128,1,1024,1,1,1;32768,8,1048576,16,8,12|diskless,file,sharedfile,plain,blockdev,drbd,rbd,ext|4.0|32.0
group-01|128,1,1024,1,1,1|128,1,1024,1,1,1;32768,8,1048576,16,8,12|diskless,file,sharedfile,plain,blockdev,drbd,rbd,ext|4.0|32.0
......@@ -127,3 +127,13 @@ diff -u $T/simu-rebal-merged.tiered $T/simu-rebal.tiered.original
./test/hs/hbal -t$TESTDATA_DIR/n1-failure.data -G group-02
>>>/Group size 0 nodes, 0 instances/
>>>= 0
# By default, hbal should assume equal, non-zero utilisation
./test/hs/hbal -t$TESTDATA_DIR/hbal-dyn.data
>>>/Solution length=1/
>>>=0
# ...but the --ignore-dynu option should be honored
./test/hs/hbal -t$TESTDATA_DIR/hbal-dyn.data --ignore-dynu
>>>/Cluster is already well balanced/
>>>=0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment