Skip to content

Commit

Permalink
Bump workers to 8
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Swarup Reddi <[email protected]>
  • Loading branch information
Dave Kincade committed Apr 2, 2018
1 parent 441d3b6 commit a907438
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dock/run
Original file line number Diff line number Diff line change
Expand Up @@ -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=-
2 changes: 1 addition & 1 deletion web-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -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=-

0 comments on commit a907438

Please sign in to comment.