From f5e3c27ab6ab1c92136a3c64f1bbdc1ea40ec595 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 5 Dec 2022 20:49:56 +0000 Subject: [PATCH] feat(helm-chart): add values for various Puma related settings --- templates/deployment-web.yaml | 16 ++++++++++++++++ values.yaml | 6 ++++++ 2 files changed, 22 insertions(+) diff --git a/templates/deployment-web.yaml b/templates/deployment-web.yaml index c1ec232..30308e2 100644 --- a/templates/deployment-web.yaml +++ b/templates/deployment-web.yaml @@ -74,6 +74,22 @@ spec: key: redis-password - name: "PORT" value: {{ .Values.mastodon.web.port | quote }} + {{- if .Values.mastodon.web.minThreads }} + - name: "MIN_THREADS" + value: {{ .Values.mastodon.web.minThreads | quote }} + {{- end }} + {{- if .Values.mastodon.web.maxThreads }} + - name: "MAX_THREADS" + value: {{ .Values.mastodon.web.maxThreads | quote }} + {{- end }} + {{- if .Values.mastodon.web.workers }} + - name: "WEB_CONCURRENCY" + value: {{ .Values.mastodon.web.workers | quote }} + {{- end }} + {{- if .Values.mastodon.web.persistentTimeout }} + - name: "PERSISTENT_TIMEOUT" + value: {{ .Values.mastodon.web.persistentTimeout | quote }} + {{- end }} {{- if (and .Values.mastodon.s3.enabled .Values.mastodon.s3.existingSecret) }} - name: "AWS_SECRET_ACCESS_KEY" valueFrom: diff --git a/values.yaml b/values.yaml index a1785fa..16dfadf 100644 --- a/values.yaml +++ b/values.yaml @@ -190,6 +190,12 @@ mastodon: # requests: # cpu: 250m # memory: 768Mi + # -- Puma-specific options. Below values are based on default behavior in + # config/puma.rb when no custom values are provided. + minThreads: "5" + maxThreads: "5" + workers: "2" + persistentTimeout: "20" metrics: statsd: