Skip to content

Commit

Permalink
fix(nemesis): disable disrupt_memory_stress
Browse files Browse the repository at this point in the history
since we might get into uncontrolled situations with this nemesis
see #6928 for more details

Ref: #6928
  • Loading branch information
fruch committed Dec 24, 2023
1 parent ecf7402 commit c4f4a0b
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions sdcm/nemesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -4277,17 +4277,21 @@ def disrupt_memory_stress(self):
if self._is_it_on_kubernetes():
self._k8s_disrupt_memory_stress()
return
if self.target_node.distro.is_rhel_like:
self.target_node.install_epel()
self.target_node.remoter.sudo('yum install -y stress-ng')
elif self.target_node.distro.is_ubuntu:
self.target_node.remoter.sudo('apt-get -y install stress-ng')
else:
raise UnsupportedNemesis(f"{self.target_node.distro} OS not supported!")

self.log.info('Try to allocate 90% total memory, the allocated memory will be swaped out')
self.target_node.remoter.run(
"stress-ng --vm-bytes $(awk '/MemTotal/{printf \"%d\\n\", $2 * 0.9;}' < /proc/meminfo)k --vm-keep -m 1 -t 100")
# if self.target_node.distro.is_rhel_like:
# self.target_node.install_epel()
# self.target_node.remoter.sudo('yum install -y stress-ng')
# elif self.target_node.distro.is_ubuntu:
# self.target_node.remoter.sudo('apt-get -y install stress-ng')
# else:
# raise UnsupportedNemesis(f"{self.target_node.distro} OS not supported!")
#
# self.log.info('Try to allocate 90% total memory, the allocated memory will be swaped out')
# self.target_node.remoter.run(
# "stress-ng --vm-bytes $(awk '/MemTotal/{printf \"%d\\n\", $2 * 0.9;}' < /proc/meminfo)k --vm-keep -m 1 -t 100")

# since we might get into uncontrolled situations with this nemesis
# see https://github.com/scylladb/scylla-cluster-tests/issues/6928
raise UnsupportedNemesis("Disabled cause of https://github.com/scylladb/scylla-cluster-tests/issues/6928")

def disrupt_toggle_cdc_feature_properties_on_table(self):
"""Manipulate cdc feature settings
Expand Down

0 comments on commit c4f4a0b

Please sign in to comment.