Skip to content

Commit

Permalink
Merge pull request #353 from RafalKorepta/rk/gh-203/aio-max-fs-change
Browse files Browse the repository at this point in the history
Enable aio-max-nr as default
  • Loading branch information
Rafal Korepta authored Feb 24, 2023
2 parents 4daf471 + c679ac3 commit b411da3
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/redpanda/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type: application
# The chart version and the app version are not the same and will not track
# together. The chart version is a semver representation of changes to this
# chart.
version: 2.10.7
version: 2.10.8

# The app version is the default version of Redpanda to install.
appVersion: v22.3.13
Expand Down
19 changes: 19 additions & 0 deletions charts/redpanda/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,25 @@ spec:
securityContext: {{ include "pod-security-context" . | nindent 8 }}
serviceAccountName: {{ include "redpanda.serviceAccountName" . }}
initContainers:
{{- if and (hasKey $values.tuning "tune_aio_events") $values.tuning.tune_aio_events }}
- name: tuning
image: {{ .Values.image.repository}}:{{ template "redpanda.tag" . }}
command:
- bash
- -c
args:
- |
rpk redpanda tune all
securityContext:
capabilities:
add: ["CAP_SYS_RESOURCE"]
privileged: true
runAsUser: 0
runAsGroup: 0
volumeMounts:
- name: {{ template "redpanda.fullname" . }}
mountPath: /etc/redpanda
{{- end }}
{{- if not .Values.statefulset.skipChown }}
- name: set-datadir-ownership
image: {{ .Values.statefulset.initContainerImage.repository }}:{{ .Values.statefulset.initContainerImage.tag }}
Expand Down
11 changes: 8 additions & 3 deletions charts/redpanda/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -549,13 +549,18 @@ rbac:
# annotations to add to the rbac resources
annotations: {}

tuning: {}
tuning:
# This section contains Redpanda tuning parameters.
# Each parameter below is set to their default values.
# Remove the curly brackets above if you uncomment any parameters below.
#
# Increases the number of allowed asynchronous IO events.
# tune_aio_events: false
# Increases the maximum number of outstanding asynchronous IO operations if the
# current value is below a certain threshold. This allows redpanda to make as many
# simultaneous IO requests as possible, increasing throughput.
#
# Enabling this option will create a privileged container. If your security profile does not allow this,
# see https://docs.redpanda.com/docs/deploy/deployment-option/self-hosted/kubernetes/kubernetes-tune-workers/ for tuning requirements.
tune_aio_events: true
#
# Syncs NTP
# tune_clocksource: false
Expand Down

0 comments on commit b411da3

Please sign in to comment.