From a90743855d31ff74bb8acd949e221d7927a0a7c0 Mon Sep 17 00:00:00 2001 From: Dave Kincade Date: Mon, 2 Apr 2018 16:30:23 -0700 Subject: [PATCH] Bump workers to 8 Gunicorn by default has 1 process and 1 thread, which is bananas. It can scale via multiple processes or by switching its worker model. Otherwise we can only handle two simultaneous requests. Change-Id: Ie2956e26f864b9c091e9fa7a69c636977d6e6588 Reviewed-on: https://code.brigade.zone/28922 Tested-by: Leeroy Jenkins Reviewed-by: Swarup Reddi --- dock/run | 2 +- web-entrypoint | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dock/run b/dock/run index 8327756..82c1997 100755 --- a/dock/run +++ b/dock/run @@ -4,4 +4,4 @@ if [[ -n "${ARCANUS_PASSWORD}" || -f "/src/.arcanus/unprotected.key" ]]; then eval "$(arcanus export --shell)" fi -cd /src && env/bin/gunicorn web:app -b 0.0.0.0:3000 --log-file=- +cd /src && env/bin/gunicorn web:app -b 0.0.0.0:3000 -w 8 --log-file=- diff --git a/web-entrypoint b/web-entrypoint index 1277199..654f066 100755 --- a/web-entrypoint +++ b/web-entrypoint @@ -4,4 +4,4 @@ # container. # PORT0 is assigned by Marathon -exec env/bin/gunicorn web:app -b 0.0.0.0:${PORT0:-3000} --log-file=- +exec env/bin/gunicorn web:app -b 0.0.0.0:${PORT0:-3000} -w 8 --log-file=-