Skip to content

Commit

Permalink
use replicaCount for workflows backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi Moondra authored and Avi Moondra committed Oct 18, 2023
1 parent f16768b commit cb0ebd6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/retool/templates/deployment_workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
{{ toYaml .Values.deployment.annotations | indent 4 }}
{{- end }}
spec:
replicas: 1
replicas: {{ default (index .Values.workflows "backend" "replicaCount") 1 }}
selector:
matchLabels:
retoolService: {{ template "retool.fullname" . }}-workflow-backend
Expand Down
2 changes: 1 addition & 1 deletion charts/retool/templates/deployment_workflows_worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
{{ toYaml .Values.deployment.annotations | indent 4 }}
{{- end }}
spec:
replicas: {{ .Values.workflows.replicaCount }}
replicas: {{ default (default (index .Values.workflows "worker" "replicaCount") (index .Values.workflows "replicaCount")) 1 }}
selector:
matchLabels:
retoolService: {{ template "retool.fullname" . }}-workflow-worker
Expand Down
6 changes: 5 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,11 @@ workflows:

# ADVANCED: The temporal cluster can be scaled separately in the subchart (charts/retool-temporal-services-helm/values.yaml)
# If your needs require scaling temporal, reach out to us for guidance -- it is likely the bottleneck is DB or worker replicaCount
replicaCount: 1
worker:
replicaCount: 1

backend:
replicaCount: 1

# Timeout for queries, in ms. This will set the timeout for workflows-related pods only
# If this value is not set but config.dbConnectorTimeout is, we will set workflows pod timeouts
Expand Down

0 comments on commit cb0ebd6

Please sign in to comment.