From 6c07a3dbfa520ea0bba79c142060e6621257dcf5 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Mon, 21 Jun 2021 14:27:01 +0200 Subject: change gunicorn conf to fight memory consumption via leak by restarting periodically --- checker/src/gunicorn.conf.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'checker/src/gunicorn.conf.py') diff --git a/checker/src/gunicorn.conf.py b/checker/src/gunicorn.conf.py index a382951..b049e48 100644 --- 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 -- cgit v1.2.3-71-gd317