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:
|
containers:
|
||||||
- name: deckhand
|
- name: deckhand
|
||||||
env:
|
env:
|
||||||
|
- name: 'DECKHAND_API_TIMEOUT'
|
||||||
|
value: {{ .Values.conf.uwsgi.timeout | default 600 | quote }}
|
||||||
- name: 'DECKHAND_API_WORKERS'
|
- name: 'DECKHAND_API_WORKERS'
|
||||||
value: {{ .Values.conf.uwsgi.workers | default 4 | quote }}
|
value: {{ .Values.conf.uwsgi.workers | default 4 | quote }}
|
||||||
- name: 'DECKHAND_API_THREADS'
|
- name: 'DECKHAND_API_THREADS'
|
||||||
|
|
|
@ -18,6 +18,8 @@ set -ex
|
||||||
|
|
||||||
# Define port
|
# Define port
|
||||||
PORT=${PORT:-9000}
|
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
|
# Number of uWSGI workers to handle API requests
|
||||||
DECKHAND_API_WORKERS=${DECKHAND_API_WORKERS:-"4"}
|
DECKHAND_API_WORKERS=${DECKHAND_API_WORKERS:-"4"}
|
||||||
# Threads per worker
|
# Threads per worker
|
||||||
|
@ -28,6 +30,7 @@ exec uwsgi \
|
||||||
--http :${PORT} \
|
--http :${PORT} \
|
||||||
-w deckhand.cmd \
|
-w deckhand.cmd \
|
||||||
--callable deckhand_callable \
|
--callable deckhand_callable \
|
||||||
|
--http-timeout $DECKHAND_API_TIMEOUT \
|
||||||
--enable-threads \
|
--enable-threads \
|
||||||
-L \
|
-L \
|
||||||
--pyargv "--config-file /etc/deckhand/deckhand.conf" \
|
--pyargv "--config-file /etc/deckhand/deckhand.conf" \
|
||||||
|
|
Loading…
Reference in New Issue