Skip to content

Commit

Permalink
fix(k8s-nemesis): make flush_and_reshard run only having 14+ cores
Browse files Browse the repository at this point in the history
Operator's racy bug [1] gets reproduced on slow backends and
nodes with small number of cores.
So, skip it for the nodes that are not running on the EKS and have
less than 14 cores.

[1] scylladb/scylla-operator#1077
  • Loading branch information
vponomaryov authored and fruch committed Nov 27, 2022
1 parent b09f98a commit 2911e9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdcm/nemesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,10 @@ def disrupt_nodetool_flush_and_reshard_on_kubernetes(self):
"""Covers https://github.com/scylladb/scylla-operator/issues/894"""
if not self._is_it_on_kubernetes():
raise UnsupportedNemesis('It is supported only on kubernetes')
if self.cluster.params.get('cluster_backend') == "k8s-gke":
if self.cluster.params.get('cluster_backend') != "k8s-eks" or self.cluster.nodes[0].scylla_shards < 14:
# NOTE: bug https://github.com/scylladb/scylla-operator/issues/1077 reproduces better
# on slower machines with smaller amount number of cores.
# So, allow it to run only on fast K8S-EKS backend having at least 14 cores per pod.
raise UnsupportedNemesis(
"Skipped due to the following bug: "
"https://github.com/scylladb/scylla-operator/issues/1077")
Expand Down

0 comments on commit 2911e9c

Please sign in to comment.