Skip to content

Commit

Permalink
tests/services: option to set stall threshold in RedpandaSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
jcsp committed Aug 8, 2022
1 parent b24f4bd commit 1a47771
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/rptest/services/redpanda.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ def __init__(self,
num_cpus: Optional[int] = None,
memory_mb: Optional[int] = None,
bypass_fsync: Optional[bool] = None,
nfiles: Optional[int] = None):
nfiles: Optional[int] = None,
reactor_stall_threshold: Optional[int] = None):
self._num_cpus = num_cpus
self._memory_mb = memory_mb

Expand All @@ -165,6 +166,7 @@ def __init__(self,
self._bypass_fsync = bypass_fsync

self._nfiles = nfiles
self._reactor_stall_threshold = reactor_stall_threshold

@property
def memory_mb(self):
Expand Down Expand Up @@ -202,6 +204,11 @@ def to_cli(self, *, dedicated_node):
"--reserve-memory=0M"
])

if self._reactor_stall_threshold is not None:
args.extend([
f"--blocked-reactor-notify-ms={self._reactor_stall_threshold}"
])

if num_cpus is not None:
args.append(f"--smp={num_cpus}")
if memory_mb is not None:
Expand Down

0 comments on commit 1a47771

Please sign in to comment.