From 04c0978ae774f3db5a38ed0a295af91bc0346fd5 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Mon, 3 Aug 2020 12:24:13 -0500 Subject: Added worker restats for uwsgi to reduce memory runaway. --- mercurial/web/templates/hgweb.ini.j2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mercurial/web/templates/hgweb.ini.j2') diff --git a/mercurial/web/templates/hgweb.ini.j2 b/mercurial/web/templates/hgweb.ini.j2 index f65d440..efa0901 100644 --- a/mercurial/web/templates/hgweb.ini.j2 +++ b/mercurial/web/templates/hgweb.ini.j2 @@ -1,5 +1,8 @@ [uwsgi] processes = 2 +max-requests = 10240 +max-requests-delta = 1024 +max-worker-lifetime = 604800 socket = unix:/run/uwsgi/app/hgweb/socket chdir = {{mercurial_uwsgi_root}} wsgi-file = hgweb.wsgi -- cgit v1.2.3