Skip to content

Commit

Permalink
Merge pull request #4365 from jcsp/issue-4247-shrink-memory-further
Browse files Browse the repository at this point in the history
tests: shrink default ResourceSettings to 2 core + 2GB RAM
  • Loading branch information
jcsp committed Apr 27, 2022
2 parents 14d5cfb + 81ae403 commit f3ddc0c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/rptest/services/redpanda.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,16 @@ class ResourceSettings:
as test nodes.
"""

DEFAULT_NUM_CPUS = 3
DEFAULT_MEMORY_MB = 3096
DEFAULT_NUM_CPUS = 2
# Redpanda's default limit on memory per shard is 1GB
DEFAULT_MEMORY_MB = 2048

def __init__(self,
*,
num_cpus: Optional[int] = None,
memory_mb: Optional[int] = None,
bypass_fsync: Optional[bool] = None,
nfiles: Optional[int] = None):

self._num_cpus = num_cpus
self._memory_mb = memory_mb

Expand Down Expand Up @@ -224,8 +224,6 @@ def to_cli(self, *, dedicated_node):
num_cpus = self._num_cpus

if self._memory_mb is None and not dedicated_node:
# Redpanda's default limit on memory per shard
# is 1GB
memory_mb = self.DEFAULT_MEMORY_MB
else:
memory_mb = self._memory_mb
Expand Down

0 comments on commit f3ddc0c

Please sign in to comment.