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

Add test for shrink heuristics over different resources



In this example, memory prevents adding more than one instance on
the first node. Yet, on the other nodes, 2 instances can be placed
each, if disks are shrunk appropriately. This, however, requires
to courageous decision to shrink disks next, even though more nodes
fail to allocate more due to memory than to disk.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
parent 20d2476e
......@@ -1038,6 +1038,7 @@ TEST_FILES = \
test/data/htools/hbal-split-insts.data \
test/data/htools/hspace-tiered-dualspec.data \
test/data/htools/hspace-tiered-ipolicy.data \
test/data/htools/hspace-tiered-resourcetypes.data \
test/data/htools/hspace-tiered.data \
test/data/htools/invalid-node.data \
test/data/htools/missing-resources.data \
......
group-01|fake-uuid-01|preferred||
node-01-001|2000|200|1700|5000|5000|8|N|fake-uuid-01
node-01-002|2000|4|1996|5000|4900|8|N|fake-uuid-01
node-01-003|2000|4|1996|5000|5000|8|N|fake-uuid-01
node-01-004|2000|4|1996|5000|5000|8|N|fake-uuid-01
|900,4,2200,1,1,1|900,4,2000,1,1,1;1000,4,2600,16,8,12|plain,diskless,file,sharedfile,blockdev,drbd,rbd,ext|4.0|32.0
group-01|900,4,2200,1,1,1|900,4,2000,1,1,1;1000,4,2600,16,8,12|plain,diskless,file,sharedfile,blockdev,drbd,rbd,ext|4.0|32.0
......@@ -30,3 +30,13 @@
node-01-003 1
node-01-004 1/
>>>=0
./test/hs/hspace -pname,pcnt -t $TESTDATA_DIR/hspace-tiered-resourcetypes.data
>>>2/Tiered allocation status:
Name pcnt
node-01-001 1
node-01-002 2
node-01-003 2
node-01-004 2/
>>>=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