Make the uWSGI http-timeout configurable
When testing Promenade integration, I found that it was taking more than the default 60 second timeout to render documents. Change-Id: Id0ee7ea30b901a60eb95df06a3d25ce4c8689a8a
This commit is contained in:
parent
2620913499
commit
80b787eb08
@ -45,6 +45,8 @@ spec:
|
||||
containers:
|
||||
- name: deckhand
|
||||
env:
|
||||
- name: 'DECKHAND_API_TIMEOUT'
|
||||
value: {{ .Values.conf.uwsgi.timeout | default 600 | quote }}
|
||||
- name: 'DECKHAND_API_WORKERS'
|
||||
value: {{ .Values.conf.uwsgi.workers | default 4 | quote }}
|
||||
- name: 'DECKHAND_API_THREADS'
|
||||
|
@ -18,6 +18,8 @@ set -ex
|
||||
|
||||
# Define port
|
||||
PORT=${PORT:-9000}
|
||||
# How long uWSGI should wait for each deckhand response
|
||||
DECKHAND_API_TIMEOUT=${DECKHAND_API_TIMEOUT:-"600"}
|
||||
# Number of uWSGI workers to handle API requests
|
||||
DECKHAND_API_WORKERS=${DECKHAND_API_WORKERS:-"4"}
|
||||
# Threads per worker
|
||||
@ -28,6 +30,7 @@ exec uwsgi \
|
||||
--http :${PORT} \
|
||||
-w deckhand.cmd \
|
||||
--callable deckhand_callable \
|
||||
--http-timeout $DECKHAND_API_TIMEOUT \
|
||||
--enable-threads \
|
||||
-L \
|
||||
--pyargv "--config-file /etc/deckhand/deckhand.conf" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user