From 1ea36d66eb8e6cb20105ab55f6300c5273d56451 Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 9 May 2019 12:23:36 +0200 Subject: [PATCH] add worker process chainetv --- templates/systemd/gunicorn.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/systemd/gunicorn.service.j2 b/templates/systemd/gunicorn.service.j2 index a5e7e27..b734562 100644 --- a/templates/systemd/gunicorn.service.j2 +++ b/templates/systemd/gunicorn.service.j2 @@ -9,7 +9,7 @@ User={{exec_user}} Group={{exec_group}} RuntimeDirectory=gunicorn WorkingDirectory={{source_location}} -ExecStart={{venv_location}}{{venv_name}}/bin/gunicorn --pid /run/gunicorn-{{name}}/pid \ +ExecStart={{venv_location}}{{venv_name}}/bin/gunicorn --workers=4 --pid /run/gunicorn-{{name}}/pid \ --bind unix:/run/gunicorn-{{name}}/socket run:app ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s TERM $MAINPID