Skip to content

Commit 5e38dec

Browse files
authored
Merge pull request redpanda-data#16028 from travisdowns/td-omb-validation-10-nodes
rptest: use 10 nodes in OMB validation tests
2 parents 7eb30b2 + 779adc5 commit 5e38dec

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

tests/rptest/redpanda_cloud_tests/omb_validation_test.py

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535

3636
class OMBValidationTest(RedpandaTest):
3737

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+
3843
# common workload details shared among most/all test methods
3944
WORKLOAD_DEFAULTS = {
4045
"topics": 1,
@@ -141,7 +146,7 @@ def _consumer_count(self, egress_rate) -> int:
141146
def _mb_to_mib(self, mb):
142147
return math.floor(0.9537 * mb)
143148

144-
@cluster(num_nodes=12)
149+
@cluster(num_nodes=CLUSTER_NODES)
145150
def test_max_connections(self):
146151
tier_limits = self.tier_limits
147152

@@ -150,7 +155,7 @@ def test_max_connections(self):
150155

151156
PRODUCER_TIMEOUT_MS = 5000
152157
OMB_WORKERS = 4
153-
SWARM_WORKERS = 7
158+
SWARM_WORKERS = 5
154159

155160
# OMB parameters
156161
#
@@ -285,7 +290,7 @@ def test_max_connections(self):
285290
finally:
286291
self.rpk.delete_topic(swarm_topic_name)
287292

288-
@cluster(num_nodes=12)
293+
@cluster(num_nodes=CLUSTER_NODES)
289294
def test_max_partitions(self):
290295
tier_limits = self.tier_limits
291296

@@ -334,14 +339,14 @@ def test_max_partitions(self):
334339
self.redpanda,
335340
"ACK_ALL_GROUP_LINGER_1MS_IDEM_MAX_IN_FLIGHT",
336341
(workload, validator),
337-
num_workers=10,
342+
num_workers=self.CLUSTER_NODES - 1,
338343
topology="ensemble")
339344
benchmark.start()
340345
benchmark_time_min = benchmark.benchmark_time() + 5
341346
benchmark.wait(timeout_sec=benchmark_time_min * 60)
342347
benchmark.check_succeed()
343348

344-
@cluster(num_nodes=12)
349+
@cluster(num_nodes=CLUSTER_NODES)
345350
def test_common_workload(self):
346351
tier_limits = self.tier_limits
347352

@@ -387,14 +392,14 @@ def test_common_workload(self):
387392
benchmark = OpenMessagingBenchmark(self._ctx,
388393
self.redpanda,
389394
driver, (workload, validator),
390-
num_workers=10,
395+
num_workers=self.CLUSTER_NODES - 1,
391396
topology="ensemble")
392397
benchmark.start()
393398
benchmark_time_min = benchmark.benchmark_time() + 5
394399
benchmark.wait(timeout_sec=benchmark_time_min * 60)
395400
benchmark.check_succeed()
396401

397-
@cluster(num_nodes=12)
402+
@cluster(num_nodes=CLUSTER_NODES)
398403
def test_retention(self):
399404
tier_limits = self.tier_limits
400405

@@ -453,7 +458,7 @@ def test_retention(self):
453458
benchmark = OpenMessagingBenchmark(self._ctx,
454459
self.redpanda,
455460
driver, (workload, validator),
456-
num_workers=10,
461+
num_workers=self.CLUSTER_NODES - 1,
457462
topology="ensemble")
458463
benchmark.start()
459464
benchmark_time_min = benchmark.benchmark_time() + 5

0 commit comments

Comments
 (0)