Added worker restats for uwsgi to reduce memory runaway.
authorLuke Hoersten <luke@hoersten.org>
Mon, 03 Aug 2020 12:24:13 -0500
changeset 129 7ced28b4207c
parent 128 b1cab99990c6
child 130 46785fdb4fc5
Added worker restats for uwsgi to reduce memory runaway.
mercurial/web/templates/hgweb.ini.j2
--- a/mercurial/web/templates/hgweb.ini.j2	Sun Aug 02 14:47:11 2020 -0500
+++ b/mercurial/web/templates/hgweb.ini.j2	Mon Aug 03 12:24:13 2020 -0500
@@ -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