Update DeckHand Chart - Multi-Threads/Workers
This p.s. will allow multi-thread/worker parameters to be configurable in the Deckhand chart so that the values can be injected into the pod environment. This is a follow up to the comments made in [0]. Note also that we will need multiple workers in order to handle concurrent requests from Armada and DryDock to DeckHand for the rendered document. Multi-threads with single worker did not work as expected. Test results from our lab environment suggests that 4 single-threaded workers will be sufficient for our purpose. Hence we will use that as default override values for now. [0] https://review.gerrithub.io/#/c/393679/ Change-Id: I228713ec7b2ec305cbc2c761bc77125ea98e7dfa
This commit is contained in:
parent
a4c287ed21
commit
a73b118549
|
@ -44,6 +44,11 @@ spec:
|
||||||
{{ tuple $envAll $dependencies $mounts_deckhand_init | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
{{ tuple $envAll $dependencies $mounts_deckhand_init | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
||||||
containers:
|
containers:
|
||||||
- name: deckhand
|
- name: deckhand
|
||||||
|
env:
|
||||||
|
- name: 'DECKHAND_API_WORKERS'
|
||||||
|
value: {{ .Values.conf.uwsgi.workers | default 4 | quote }}
|
||||||
|
- name: 'DECKHAND_API_THREADS'
|
||||||
|
value: {{ .Values.conf.uwsgi.threads | default 1 | quote }}
|
||||||
image: {{ .Values.images.tags.deckhand }}
|
image: {{ .Values.images.tags.deckhand }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||||
{{ tuple $envAll $envAll.Values.pod.resources.api | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
{{ tuple $envAll $envAll.Values.pod.resources.api | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||||
|
|
|
@ -181,6 +181,9 @@ database:
|
||||||
db_root_user: postgres
|
db_root_user: postgres
|
||||||
|
|
||||||
conf:
|
conf:
|
||||||
|
uwsgi:
|
||||||
|
threads: 1
|
||||||
|
workers: 4
|
||||||
policy:
|
policy:
|
||||||
admin_api: role:admin
|
admin_api: role:admin
|
||||||
deckhand:create_cleartext_documents: rule:admin_api
|
deckhand:create_cleartext_documents: rule:admin_api
|
||||||
|
|
Loading…
Reference in New Issue