Skip to content

Commit 073ca6d

Browse files
committed
chore(charts): celery process isolation
1 parent 393f43d commit 073ca6d

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

charts/controller/templates/celery/controller-celery-deloyment.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ spec:
3939
- $(DRYCC_DATABASE_URL),$(DRYCC_VALKEY_URL),$(DRYCC_DATABASE_REPLICA_URL),http://drycc-controller-api
4040
{{- include "controller.envs" . | indent 8 }}
4141
containers:
42-
- name: drycc-controller-celery
42+
{{- range $key := (list "low" "middle" "high") }}
43+
- name: drycc-controller-celery-{{$key}}
4344
image: {{$.Values.imageRegistry}}/{{$.Values.imageOrg}}/controller:{{$.Values.imageTag}}
4445
imagePullPolicy: {{$.Values.imagePullPolicy}}
4546
{{- if $.Values.diagnosticMode.enabled }}
@@ -49,9 +50,9 @@ spec:
4950
args:
5051
- /bin/bash
5152
- -c
52-
- celery --app api worker --queues controller.low,controller.high,controller.middle --autoscale=32,1 --loglevel=WARNING
53+
- celery --app api worker --queues controller.{{$key}} --autoscale=32,1 --loglevel=WARNING
5354
{{- end }}
54-
{{- with index .Values "celery" "resources" }}
55+
{{- with index $.Values "celery" "resources" }}
5556
resources:
5657
{{- toYaml . | nindent 10 }}
5758
{{- end }}
@@ -60,7 +61,8 @@ spec:
6061
- name: controller-config
6162
readOnly: false
6263
mountPath: /etc/controller
64+
{{- end }}
6365
volumes:
6466
- name: controller-config
6567
configMap:
66-
name: controller-config
68+
name: controller-config

0 commit comments

Comments
 (0)