Skip to content

Commit bade307

Browse files
committed
Working test.csv ready for review
1 parent d6bd8c6 commit bade307

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/orchestrator/test.csv

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
action,ms,bytes,lang,code,repeat,minver,comment
22

3+
run,0,0,q,\c 300 300,1,,""
4+
35
/test for scaling up func
46
before,0,0,q,instancesbefore:.orch.scaleprocsinstances[`hdb1;`instances],1,,"get current instances of hdb1"
57
run,0,0,q,.orch.scaleup[`hdb1],1,,"scale up hdb1"
@@ -11,3 +13,16 @@ run,0,0,q,instancesbefore:.orch.scaleprocsinstances[`hdb1;`instances],1,,"get cu
1113
run,0,0,q,.orch.scaledown[`hdb1],1,,"scale down"
1214
run,0,0,q,instancesafter:.orch.scaleprocsinstances[`hdb1;`instances],1,,"get current instances of hdb1"
1315
true,0,0,q,instancesbefore>instancesafter,1,,"check instances now smaller for hdb1"
16+
17+
/testing limits: upper then lower
18+
run,0,0,q,if[.orch.scaleprocsinstances[`hdb1;`instances]<.orch.limits[`hdb1;`upper];.orch.scaleup[`hdb1];0],1,,"if no. instances is lower than limit, keep scaling up"
19+
run,0,0,q,before:.orch.scaleprocsinstances[`hdb1;`instances],1,,"get current insatnces of hdb1"
20+
run,0,0,q,.orch.scaleup[`hdb1],1,,"scaling up once more after limit is hit, to show no. instances doesn't chnage once limit hit"
21+
run,0,0,q,after:.orch.scaleprocsinstances[`hdb1;`instances],1,,"get current instances of hdb1"
22+
true,0,0,q,before=after,1,,"checking no. instances hasn't changed, so limit prevents further scaling up"
23+
24+
run,0,0,q,if[.orch.scaleprocsinstances[`hdb1;`instances]>.orch.limits[`hdb1;`lower];.orch.scaledown[`hdb1];0],1,,"if no. instances is higher than limit, keep scaling down"
25+
run,0,0,q,before:.orch.scaleprocsinstances[`hdb1;`instances],1,,"get current insatnces of hdb1"
26+
run,0,0,q,.orch.scaledown[`hdb1],1,,"scale down once more to show no.instances stays same, indicating can't scale lower once limit hit"
27+
run,0,0,q,after:.orch.scaleprocsinstances[`hdb1;`instances],1,,"get current instances of hdb1"
28+
true,0,0,q,before=after,1,,"checking no. instances hasn't changed, so limit prevents further scaling down"

0 commit comments

Comments
 (0)