From 8b05341367bde77dffe1aab6655bb4cb7488dc93 Mon Sep 17 00:00:00 2001 From: Bluice Zhen Date: Sun, 4 Jan 2026 17:37:35 +0800 Subject: [PATCH] Expose startTimeout in Helm chart Add startTimeout to FE/BE/CN/broker specs so Helm values flow through to the DorisCluster CRD. Document the new options in values.yaml and README and note the default 300s behavior when unset. --- helm-charts/doris/README.md | 13 +++++++++++++ helm-charts/doris/templates/doriscluster.yaml | 12 ++++++++++++ helm-charts/doris/values.yaml | 10 ++++++++-- 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/helm-charts/doris/README.md b/helm-charts/doris/README.md index 36a556b2..2a40e1ae 100644 --- a/helm-charts/doris/README.md +++ b/helm-charts/doris/README.md @@ -40,6 +40,19 @@ this document and doris-operator installation document are duplicated. you can s $ helm install -f values.yaml doriscluster doris ``` +## Start Timeout +`startTimeout` controls the pod start timeout (seconds) for each component spec. If not set, the operator default (300s) is used. +```yaml +feSpec: + startTimeout: 600 +beSpec: + startTimeout: 600 +cnSpec: + startTimeout: 600 +brokerSpec: + startTimeout: 600 +``` + ### Validate installation status After executing the installation command, deployment and distribution, service deployment scheduling and startup will take a certain amount of time. Check the deployment status of Pods through the kubectl get pods command. Observe that the Pod of `doriscluster` is in the `Running` state and all containers in the Pod are ready, that means, the deployment is successful. diff --git a/helm-charts/doris/templates/doriscluster.yaml b/helm-charts/doris/templates/doriscluster.yaml index 4cec9a4b..bbe09b32 100644 --- a/helm-charts/doris/templates/doriscluster.yaml +++ b/helm-charts/doris/templates/doriscluster.yaml @@ -49,6 +49,9 @@ spec: {{- if .Values.feSpec.electionNumber }} electionNumber: {{ .Values.feSpec.electionNumber }} {{- end }} + {{- if .Values.feSpec.startTimeout }} + startTimeout: {{ .Values.feSpec.startTimeout }} + {{- end }} {{- if .Values.feSpec.labels }} podLabels: {{- toYaml .Values.feSpec.labels | nindent 6 }} @@ -135,6 +138,9 @@ spec: {{- toYaml .Values.beSpec.annotations | nindent 6 }} {{- end }} replicas: {{ .Values.beSpec.replicas }} + {{- if .Values.beSpec.startTimeout }} + startTimeout: {{ .Values.beSpec.startTimeout }} + {{- end }} {{- if .Values.beSpec.labels }} podLabels: {{- toYaml .Values.beSpec.labels | nindent 6 }} @@ -222,6 +228,9 @@ spec: {{- toYaml .Values.cnSpec.annotations | nindent 6 }} {{- end }} replicas: {{ .Values.cnSpec.replicas }} + {{- if .Values.cnSpec.startTimeout }} + startTimeout: {{ .Values.cnSpec.startTimeout }} + {{- end }} {{- if .Values.cnSpec.labels }} podLabels: @@ -320,6 +329,9 @@ spec: {{- toYaml .Values.brokerSpec.annotations | nindent 6 }} {{- end }} replicas: {{ .Values.brokerSpec.replicas }} + {{- if .Values.brokerSpec.startTimeout }} + startTimeout: {{ .Values.brokerSpec.startTimeout }} + {{- end }} {{- if .Values.brokerSpec.labels }} podLabels: diff --git a/helm-charts/doris/values.yaml b/helm-charts/doris/values.yaml index 420fd601..84d64b60 100644 --- a/helm-charts/doris/values.yaml +++ b/helm-charts/doris/values.yaml @@ -55,6 +55,8 @@ feSpec: replicas: 3 # electionNumber represents `FOLLOWER` number, replicas - electionNumber as `OBSERVER` # electionNumber: 3 + # pod start timeout, unit is second. + # startTimeout: 300 # the pod labels for user select or classify pods. labels: {} # selectdb.app.classify: "classify-1" @@ -221,6 +223,8 @@ beSpec: # annotations for be pods and service annotations: {} replicas: 3 + # pod start timeout, unit is second. + # startTimeout: 300 # the pod labels for user select or classify pods. labels: {} # selectdb.app.classify: "classify-1" @@ -388,6 +392,8 @@ cnSpec: # annotations for cn pods and service annotations: {} replicas: 3 + # pod start timeout, unit is second. + # startTimeout: 300 # the pod labels for user select or classify pods. labels: {} # selectdb.app.classify: "classify-1" @@ -571,6 +577,8 @@ brokerSpec: # annotations for broker pods and service annotations: {} replicas: 3 + # pod start timeout, unit is second. + # startTimeout: 300 # the pod labels for user select or classify pods. labels: {} # selectdb.app.classify: "classify-1" @@ -707,5 +715,3 @@ brokerSpec: systemInitialization: {} # initImage: "selectdb/alpine:latest" # command: [ "/sbin/sysctl", "-w", "vm.max_map_count=2000000" ] - -