File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11from typing import List
22from random import sample
33
4- RANGE = 10 ** 12
4+ RANGE = 10 ** 12
55LENGTH = 5
66
77
Original file line number Diff line number Diff line change @@ -447,14 +447,14 @@ def test_autoscaling(
447447 current_replicas += 1
448448 if current_replicas > max_replicas :
449449 current_replicas = max_replicas
450- test_timeout += int (autoscaling ["upscale_stabilization_period" ] / (1000 ** 3 ))
450+ test_timeout += int (autoscaling ["upscale_stabilization_period" ] / (1000 ** 3 ))
451451 while current_replicas > 1 :
452452 downscale_ceil = math .ceil (current_replicas * autoscaling ["max_downscale_factor" ])
453453 if downscale_ceil < current_replicas - 1 :
454454 current_replicas = downscale_ceil
455455 else :
456456 current_replicas -= 1
457- test_timeout += int (autoscaling ["downscale_stabilization_period" ] / (1000 ** 3 ))
457+ test_timeout += int (autoscaling ["downscale_stabilization_period" ] / (1000 ** 3 ))
458458
459459 # add overhead to the test timeout to account for the process of downloading images or adding nodes to the cluster
460460 test_timeout *= 2
Original file line number Diff line number Diff line change @@ -126,13 +126,13 @@ def pytest_configure(config):
126126 },
127127 "load_test_config" : {
128128 "realtime" : {
129- "total_requests" : 10 ** 5 ,
129+ "total_requests" : 10 ** 5 ,
130130 "desired_replicas" : 50 ,
131131 "concurrency" : 50 ,
132132 "status_code_timeout" : 60 , # measured in seconds
133133 },
134134 "async" : {
135- "total_requests" : 10 ** 3 ,
135+ "total_requests" : 10 ** 3 ,
136136 "desired_replicas" : 20 ,
137137 "concurrency" : 10 ,
138138 "submit_timeout" : 120 , # measured in seconds
@@ -141,7 +141,7 @@ def pytest_configure(config):
141141 "batch" : {
142142 "jobs" : 10 ,
143143 "workers_per_job" : 10 ,
144- "items_per_job" : 10 ** 5 ,
144+ "items_per_job" : 10 ** 5 ,
145145 "batch_size" : 10 * 2 ,
146146 "workload_timeout" : 300 , # measured in seconds
147147 },
You can’t perform that action at this time.
0 commit comments