Skip to content

Commit

Permalink
fix(k8s): enable kernel.perf_event_paranoid=0
Browse files Browse the repository at this point in the history
since recently we enabled `print_kernel_callstack` by default
k8s setup need to enable `perf_event_paranoid` in order for it
to work correctly.

Close: #6018
  • Loading branch information
fruch committed Apr 23, 2023
1 parent d1180e6 commit d95ab1b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions sdcm/cluster_k8s/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,13 @@ def get_scylla_cluster_helm_values(self, cpu_limit, memory_limit, pool_name: str
"disabled": False,
"ingressClassName": "haproxy",
}}}
# NOTE: '5578536' value is defined in the scylla repo here:
# dist/common/sysctl.d/99-scylla-aio.conf
# It is the same for the 4.3.x , 4.4.x and 4.5.x versions
sysctls = ["fs.aio-max-nr=5578536", ]
if self.params.get('print_kernel_callstack'):
sysctls += ["kernel.perf_event_paranoid=0", ]

return HelmValues({
'nameOverride': '',
'fullnameOverride': cluster_name,
Expand All @@ -882,10 +889,7 @@ def get_scylla_cluster_helm_values(self, cpu_limit, memory_limit, pool_name: str
'cpuset': True,
'hostNetworking': False,
'automaticOrphanedNodeCleanup': True,
# NOTE: '5578536' value is defined in the scylla repo here:
# dist/common/sysctl.d/99-scylla-aio.conf
# It is the same for the 4.3.x , 4.4.x and 4.5.x versions
'sysctls': ["fs.aio-max-nr=5578536"],
'sysctls': sysctls,
'serviceMonitor': {
'create': False
},
Expand Down

0 comments on commit d95ab1b

Please sign in to comment.