Commit 81a3f397 authored by Klaus Aehlig's avatar Klaus Aehlig

Add an example for oversubscribed failover

In this example, every node is over the spindle limit (a
soft disk error). Moreover, the cluster is unbalanced and
the only possible move is a failover.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
parent 9322efbf
......@@ -1705,6 +1705,7 @@ TEST_FILES = \
test/data/htools/hbal-migration-3.data \
test/data/htools/hail-multialloc-dedicated.json \
test/data/htools/hbal-soft-errors.data \
test/data/htools/hbal-soft-errors2.data \
test/data/htools/hbal-split-insts.data \
test/data/htools/hspace-groups-one.data \
test/data/htools/hspace-groups-two.data \
......
default|fake-uuid-01|preferred||
node-01|16384|0|14336|409600|306600|16|N|fake-uuid-01|1|
node-02|16384|0|16384|409600|306600|16|N|fake-uuid-01|1|
inst121|1024|51200|1|running|Y|node-01|node-02|drbd||1
inst122|1024|51200|1|running|Y|node-01|node-02|drbd||1
|128,1,1024,1,1,1|128,1,1024,1,1,1;32768,8,1048576,16,8,12|drbd,plain|4.0|1.0
default|128,1,1024,1,1,1|128,1,1024,1,1,1;32768,8,1048576,16,8,12|drbd,plain|4.0|1.0
......@@ -148,16 +148,28 @@ diff -u $T/simu-rebal-merged.tiered $T/simu-rebal.tiered.original
>>>/Solution length=0/
>>>=0
./test/hs/hbal -t$TESTDATA_DIR/hbal-soft-errors2.data
>>>/Solution length=0/
>>>=0
# ...and suggest to the user to weaken movement restrictions;
./test/hs/hbal -t$TESTDATA_DIR/hbal-soft-errors.data
>>>/consider using the --ignore-soft-errors option/
>>>=0
./test/hs/hbal -t$TESTDATA_DIR/hbal-soft-errors2.data
>>>/consider using the --ignore-soft-errors option/
>>>=0
# allowing soft errors, an improvement should be found.
./test/hs/hbal -t$TESTDATA_DIR/hbal-soft-errors.data --ignore-soft-errors
>>>/Solution length=[1-9]/
>>>=0
./test/hs/hbal -t$TESTDATA_DIR/hbal-soft-errors2.data --ignore-soft-errors
>>>/Solution length=[1-9]/
>>>=0
# forthcoming instances can be balanced as well
./test/hs/hbal -t$TESTDATA_DIR/hbal-forth.data
>>>/Solution length=[1-9]/
......
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