Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable aio-max-nr as default #353

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
RafalKorepta marked this conversation as resolved.
Show resolved Hide resolved
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