From deffeebd856d51002f0287f38a77355acc36fa37 Mon Sep 17 00:00:00 2001 From: pictuga Date: Tue, 23 Nov 2021 20:00:10 +0100 Subject: [PATCH] gunicorn: use more aggressive multi-threading settings --- README.md | 2 +- docker-entry.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 docker-entry.sh diff --git a/README.md b/README.md index 2b482e2..c838165 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ write_files: runcmd: - update-ca-certificates - pip install git+https://git.pictuga.com/pictuga/morss.git#[full] gunicorn - - gunicorn --bind 0.0.0.0:${PORT:-8000} -w 4 --preload --access-logfile - morss + - gunicorn --bind 0.0.0.0:${PORT:-8000} --workers 4 --worker-class=gevent --preload --access-logfile - morss ``` ## Run diff --git a/docker-entry.sh b/docker-entry.sh old mode 100755 new mode 100644 index 620ff44..ba9b0e7 --- a/docker-entry.sh +++ b/docker-entry.sh @@ -1,7 +1,7 @@ #! /bin/sh if [ -z "$1" ] || [ "$@" = "run" ]; then - gunicorn --bind 0.0.0.0:${PORT:-8000} -w 4 --preload --access-logfile - morss + gunicorn --bind 0.0.0.0:${PORT:-8000} --workers 4 --worker-class=gevent --preload --access-logfile - morss else morss $@ fi