enowars5-service-stldoctor

STL-Analyzing A/D Service for ENOWARS5 in 2021
git clone https://git.sinitax.com/sinitax/enowars5-service-stldoctor
Log | Files | Refs | README | LICENSE | sfeed.txt

commit 6c07a3dbfa520ea0bba79c142060e6621257dcf5
parent 4079472724d24f1d5c02028b802c557a0fd2e53f
Author: Louis Burda <quent.burda@gmail.com>
Date:   Mon, 21 Jun 2021 14:27:01 +0200

change gunicorn conf to fight memory consumption via leak by restarting periodically

Diffstat:
Mchecker/src/gunicorn.conf.py | 12+++++++-----
Mchecker/src/requirements.txt | 2+-
2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/checker/src/gunicorn.conf.py b/checker/src/gunicorn.conf.py @@ -1,7 +1,10 @@ -# This is a configuration file required by the checker. import multiprocessing -worker_class = "eventlet" -workers = multiprocessing.cpu_count()*2+1 + +worker_class = "gevent" +workers = multiprocessing.cpu_count() * 2 + 1 bind = "0.0.0.0:3031" timeout = 90 -keepalive = 3600 -\ No newline at end of file +keepalive = 3600 +max_requests = 100 +preload_app = True +max_requests_jitter = 30 diff --git a/checker/src/requirements.txt b/checker/src/requirements.txt @@ -10,7 +10,7 @@ enochecker-core==0.10.0 eventlet==0.30.2 Flask==1.1.2 greenlet==1.0.0 -gunicorn==20.1.0 +gunicorn[gevent] idna==2.10 itsdangerous==1.1.0 Jinja2==2.11.3