fix(docker/helm): Make webserver query timeout adjustable (#15007)

* Allow timeout override, but keep default if unset

* Add template placeholder values for timeout change

* Bump chart version

* linting

* remove whitespace
This commit is contained in:
Daniel Wood 2021-06-15 23:23:47 -07:00 committed by GitHub
parent 9282c58654
commit 6edf3404a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -27,7 +27,7 @@ else
--workers 1 \
--worker-class gthread \
--threads 20 \
--timeout 60 \
--timeout ${GUNICORN_TIMEOUT:-60} \
--limit-request-line 0 \
--limit-request-field_size 0 \
"${FLASK_APP}"

View File

@ -48,6 +48,8 @@ envFromSecret: '{{ template "superset.fullname" . }}-env'
## Extra environment variables that will be passed into pods
##
extraEnv: {}
# Extend timeout to allow long running queries.
# GUNICORN_TIMEOUT: 300
## Extra environment variables to pass as secrets
##
@ -76,6 +78,9 @@ extraSecrets: {}
# A dictionary of overrides to append at the end of superset_config.py - the name does not matter
# WARNING: the order is not guaranteed
configOverrides: {}
# extend_timeout: |
# # Extend timeout to allow long running queries.
# SUPERSET_WEBSERVER_TIMEOUT = ...
# enable_oauth: |
# from flask_appbuilder.security.manager import AUTH_DB
# AUTH_TYPE = AUTH_OAUTH
@ -121,6 +126,10 @@ ingress:
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
## Extend timeout to allow long running queries.
# nginx.ingress.kubernetes.io/proxy-connect-timeout: "300"
# nginx.ingress.kubernetes.io/proxy-read-timeout: "300"
# nginx.ingress.kubernetes.io/proxy-send-timeout: "300"
path: /
hosts:
- chart-example.local