Commit 1c912fd2 authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Add test for hsqueeze compression



In this example cluster, there are 6 nodes with
capacity for 4 instances each, holding a total
of 8 instances. So even after turning off 2 nodes
and rebalancing, every node still has capacity for
2 instances.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
parent 5f6e9cb9
......@@ -1268,6 +1268,7 @@ TEST_FILES = \
test/data/htools/hroller-nodegroups.data \
test/data/htools/hroller-nonredundant.data \
test/data/htools/hroller-online.data \
test/data/htools/hsqueeze-underutilized.data \
test/data/htools/unique-reboot-order.data \
test/hs/shelltests/htools-balancing.test \
test/hs/shelltests/htools-basic.test \
......@@ -1276,6 +1277,7 @@ TEST_FILES = \
test/hs/shelltests/htools-hail.test \
test/hs/shelltests/htools-hroller.test \
test/hs/shelltests/htools-hspace.test \
test/hs/shelltests/htools-hsqueeze.test \
test/hs/shelltests/htools-invalid.test \
test/hs/shelltests/htools-multi-group.test \
test/hs/shelltests/htools-no-backend.test \
......
group-01|fake-uuid-01|preferred|
node-01-000|512|0|258|1052|1052|9|M|fake-uuid-01|1
node-01-001|512|0|258|1052|1052|9|N|fake-uuid-01|1
node-01-002|512|0|385|1052|1052|9|N|fake-uuid-01|1
node-01-003|512|0|385|1052|1052|9|N|fake-uuid-01|1
node-01-004|512|0|385|1052|1052|9|N|fake-uuid-01|1
node-01-005|512|0|385|1052|1052|9|N|fake-uuid-01|1
inst-00|127|0|1|running|Y|node-01-000||ext||1
inst-01|127|0|1|running|Y|node-01-000||ext||1
inst-10|127|0|1|running|Y|node-01-001||ext||1
inst-11|127|0|1|running|Y|node-01-001||ext||1
inst-20|127|0|1|running|Y|node-01-002||ext||1
inst-30|127|0|1|running|Y|node-01-003||ext||1
inst-40|127|0|1|running|Y|node-01-004||ext||1
inst-50|127|0|1|running|Y|node-01-005||ext||1
|127,1,0,0,1,1|127,1,0,1,1,1;256,1,0,0,2,2|ext|1.0|32.0
./test/hs/hsqueeze --no-headers -t $TESTDATA_DIR/hsqueeze-underutilized.data
>>>/^node-01-00[2345]
node-01-00[2345]
node-01-00[2345]$/
>>>= 0
./test/hs/hsqueeze --no-headers --target-resources=2.0 -t $TESTDATA_DIR/hsqueeze-underutilized.data
>>>/^node-01-00[2345]
node-01-00[2345]$/
>>>= 0
./test/hs/hsqueeze --no-headers --target-resources=0 -t $TESTDATA_DIR/hsqueeze-underutilized.data
>>>/^node-01-00[2345]
node-01-00[2345]
node-01-00[2345]
node-01-00[2345]$/
>>>= 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