From 4d07565e0040dbcec595dd702a67442873cb3ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 9 Apr 2024 17:26:28 +0200 Subject: [PATCH] Decrease worker number --- conf/pgadmin.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/pgadmin.service b/conf/pgadmin.service index 90d1308..0b09249 100644 --- a/conf/pgadmin.service +++ b/conf/pgadmin.service @@ -8,7 +8,7 @@ User=__APP__ WorkingDirectory=__INSTALL_DIR__ RuntimeDirectory=__APP__ # Note don't increase workers > 1 as it don't work -ExecStart=__INSTALL_DIR__/venv/bin/gunicorn --bind unix:/run/__APP__/app.socket --workers=1 --threads=10 --chdir __INSTALL_DIR__/venv/lib/python__PYTHON_VERSION__/site-packages/pgadmin4 pgAdmin4:app +ExecStart=__INSTALL_DIR__/venv/bin/gunicorn --bind unix:/run/__APP__/app.socket --workers=1 --threads=4 --chdir __INSTALL_DIR__/venv/lib/python__PYTHON_VERSION__/site-packages/pgadmin4 pgAdmin4:app Restart=always RestartSec=3