35
35
36
36
class OMBValidationTest (RedpandaTest ):
37
37
38
+ # The numbers of nodes we expect to run with - this value (10) is the default
39
+ # for duck.py so these tests should just work with that default, but not necessarily
40
+ # any less than that.
41
+ CLUSTER_NODES = 10
42
+
38
43
# common workload details shared among most/all test methods
39
44
WORKLOAD_DEFAULTS = {
40
45
"topics" : 1 ,
@@ -141,7 +146,7 @@ def _consumer_count(self, egress_rate) -> int:
141
146
def _mb_to_mib (self , mb ):
142
147
return math .floor (0.9537 * mb )
143
148
144
- @cluster (num_nodes = 12 )
149
+ @cluster (num_nodes = CLUSTER_NODES )
145
150
def test_max_connections (self ):
146
151
tier_limits = self .tier_limits
147
152
@@ -150,7 +155,7 @@ def test_max_connections(self):
150
155
151
156
PRODUCER_TIMEOUT_MS = 5000
152
157
OMB_WORKERS = 4
153
- SWARM_WORKERS = 7
158
+ SWARM_WORKERS = 5
154
159
155
160
# OMB parameters
156
161
#
@@ -285,7 +290,7 @@ def test_max_connections(self):
285
290
finally :
286
291
self .rpk .delete_topic (swarm_topic_name )
287
292
288
- @cluster (num_nodes = 12 )
293
+ @cluster (num_nodes = CLUSTER_NODES )
289
294
def test_max_partitions (self ):
290
295
tier_limits = self .tier_limits
291
296
@@ -334,14 +339,14 @@ def test_max_partitions(self):
334
339
self .redpanda ,
335
340
"ACK_ALL_GROUP_LINGER_1MS_IDEM_MAX_IN_FLIGHT" ,
336
341
(workload , validator ),
337
- num_workers = 10 ,
342
+ num_workers = self . CLUSTER_NODES - 1 ,
338
343
topology = "ensemble" )
339
344
benchmark .start ()
340
345
benchmark_time_min = benchmark .benchmark_time () + 5
341
346
benchmark .wait (timeout_sec = benchmark_time_min * 60 )
342
347
benchmark .check_succeed ()
343
348
344
- @cluster (num_nodes = 12 )
349
+ @cluster (num_nodes = CLUSTER_NODES )
345
350
def test_common_workload (self ):
346
351
tier_limits = self .tier_limits
347
352
@@ -387,14 +392,14 @@ def test_common_workload(self):
387
392
benchmark = OpenMessagingBenchmark (self ._ctx ,
388
393
self .redpanda ,
389
394
driver , (workload , validator ),
390
- num_workers = 10 ,
395
+ num_workers = self . CLUSTER_NODES - 1 ,
391
396
topology = "ensemble" )
392
397
benchmark .start ()
393
398
benchmark_time_min = benchmark .benchmark_time () + 5
394
399
benchmark .wait (timeout_sec = benchmark_time_min * 60 )
395
400
benchmark .check_succeed ()
396
401
397
- @cluster (num_nodes = 12 )
402
+ @cluster (num_nodes = CLUSTER_NODES )
398
403
def test_retention (self ):
399
404
tier_limits = self .tier_limits
400
405
@@ -453,7 +458,7 @@ def test_retention(self):
453
458
benchmark = OpenMessagingBenchmark (self ._ctx ,
454
459
self .redpanda ,
455
460
driver , (workload , validator ),
456
- num_workers = 10 ,
461
+ num_workers = self . CLUSTER_NODES - 1 ,
457
462
topology = "ensemble" )
458
463
benchmark .start ()
459
464
benchmark_time_min = benchmark .benchmark_time () + 5
0 commit comments