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
@@ -320,14 +325,14 @@ def test_max_partitions(self):
320
325
self .redpanda ,
321
326
"ACK_ALL_GROUP_LINGER_1MS_IDEM_MAX_IN_FLIGHT" ,
322
327
(workload , validator ),
323
- num_workers = 10 ,
328
+ num_workers = self . CLUSTER_NODES - 1 ,
324
329
topology = "ensemble" )
325
330
benchmark .start ()
326
331
benchmark_time_min = benchmark .benchmark_time () + 5
327
332
benchmark .wait (timeout_sec = benchmark_time_min * 60 )
328
333
benchmark .check_succeed ()
329
334
330
- @cluster (num_nodes = 12 )
335
+ @cluster (num_nodes = CLUSTER_NODES )
331
336
def test_common_workload (self ):
332
337
tier_limits = self .tier_limits
333
338
@@ -373,14 +378,14 @@ def test_common_workload(self):
373
378
benchmark = OpenMessagingBenchmark (self ._ctx ,
374
379
self .redpanda ,
375
380
driver , (workload , validator ),
376
- num_workers = 10 ,
381
+ num_workers = self . CLUSTER_NODES - 1 ,
377
382
topology = "ensemble" )
378
383
benchmark .start ()
379
384
benchmark_time_min = benchmark .benchmark_time () + 5
380
385
benchmark .wait (timeout_sec = benchmark_time_min * 60 )
381
386
benchmark .check_succeed ()
382
387
383
- @cluster (num_nodes = 12 )
388
+ @cluster (num_nodes = CLUSTER_NODES )
384
389
def test_retention (self ):
385
390
tier_limits = self .tier_limits
386
391
@@ -439,7 +444,7 @@ def test_retention(self):
439
444
benchmark = OpenMessagingBenchmark (self ._ctx ,
440
445
self .redpanda ,
441
446
driver , (workload , validator ),
442
- num_workers = 10 ,
447
+ num_workers = self . CLUSTER_NODES - 1 ,
443
448
topology = "ensemble" )
444
449
benchmark .start ()
445
450
benchmark_time_min = benchmark .benchmark_time () + 5
0 commit comments