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:
Mark Burnett 2018-01-17 15:16:06 -06:00
parent 2620913499
commit 80b787eb08
2 changed files with 5 additions and 0 deletions

View File

@ -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'

View File

@ -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" \