From 5061591f8d8c90dd1d9dd80ee06f43ebfca79a52 Mon Sep 17 00:00:00 2001 From: Ievgen Aleinikov Date: Thu, 24 Jan 2019 10:43:24 +1100 Subject: [PATCH 1/2] adding gevent worker in requirements.txt, adding some gunicorn configurable parameters with defaults --- bin/docker-entrypoint | 2 +- requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/docker-entrypoint b/bin/docker-entrypoint index 8cc09a4949..c4dc84f06c 100755 --- a/bin/docker-entrypoint +++ b/bin/docker-entrypoint @@ -20,7 +20,7 @@ scheduler() { } server() { - exec /usr/local/bin/gunicorn -b 0.0.0.0:5000 --name redash -w${REDASH_WEB_WORKERS:-4} redash.wsgi:app + exec /usr/local/bin/gunicorn -b 0.0.0.0:5000 --name redash -w${REDASH_WEB_WORKERS:-4} -k ${GUNICORN_ENGINE:-sync} --timeout ${GUNICORN_TIMEOUT:-30} --keep-alive ${GUNICORN_KEEP_ALIVE:-2} redash.wsgi:app } create_db() { diff --git a/requirements.txt b/requirements.txt index c078f4cdff..b205b81b32 100644 --- a/requirements.txt +++ b/requirements.txt @@ -58,3 +58,4 @@ disposable-email-domains # Uncomment the requirement for ldap3 if using ldap. # It is not included by default because of the GPL license conflict. # ldap3==2.2.4 +gevent==1.4.0 From eda2b16d3387b70e394ef0d4e0c800536daab34a Mon Sep 17 00:00:00 2001 From: Ievgen Aleinikov Date: Wed, 27 Feb 2019 19:09:20 +1100 Subject: [PATCH 2/2] reverting the change as it's going to be set via env variable(s) --- bin/docker-entrypoint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/docker-entrypoint b/bin/docker-entrypoint index c4dc84f06c..8cc09a4949 100755 --- a/bin/docker-entrypoint +++ b/bin/docker-entrypoint @@ -20,7 +20,7 @@ scheduler() { } server() { - exec /usr/local/bin/gunicorn -b 0.0.0.0:5000 --name redash -w${REDASH_WEB_WORKERS:-4} -k ${GUNICORN_ENGINE:-sync} --timeout ${GUNICORN_TIMEOUT:-30} --keep-alive ${GUNICORN_KEEP_ALIVE:-2} redash.wsgi:app + exec /usr/local/bin/gunicorn -b 0.0.0.0:5000 --name redash -w${REDASH_WEB_WORKERS:-4} redash.wsgi:app } create_db() {