Skip to content

Commit f9757b8

Browse files
authored
limit memory in the TestYdbTopicWorkload.test by reducing concurrency under memory sanitizer (#26491)
1 parent 69a3522 commit f9757b8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

ydb/tests/stress/topic/tests/test_workload_topic.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,20 @@ def setup(self):
1212
yield from self.setup_cluster()
1313

1414
def test(self):
15+
limit_memory_useage = os.environ.get("YDB_STRESS_TEST_LIMIT_MEMORY", "0").lower() in ['true', '1', 'y', 'yes']
16+
consumers = 50
17+
producers = 100
18+
if limit_memory_useage:
19+
consumers //= 3
20+
producers //= 3
1521
cmd_args = [
1622
yatest.common.binary_path(os.environ["YDB_WORKLOAD_PATH"]),
1723
"--endpoint", self.endpoint,
1824
"--database", self.database,
1925
"--duration", "60",
20-
"--consumers", "50",
21-
"--producers", "100",
26+
"--consumers", str(consumers),
27+
"--producers", str(producers),
2228
]
23-
if os.environ.get("YDB_STRESS_TEST_LIMIT_MEMORY", "0").lower() in ['true', '1', 'y', 'yes']:
29+
if limit_memory_useage:
2430
cmd_args.append('--limit-memory-usage')
2531
yatest.common.execute(cmd_args)

0 commit comments

Comments
 (0)