You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/orchestrator/test.csv
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
action,ms,bytes,lang,code,repeat,minver,comment
2
2
3
+
run,0,0,q,\c 300 300,1,,""
4
+
3
5
/test for scaling up func
4
6
before,0,0,q,instancesbefore:.orch.scaleprocsinstances[`hdb1;`instances],1,,"get current instances of hdb1"
5
7
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
11
13
run,0,0,q,.orch.scaledown[`hdb1],1,,"scale down"
12
14
run,0,0,q,instancesafter:.orch.scaleprocsinstances[`hdb1;`instances],1,,"get current instances of hdb1"
13
15
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