src.nth.io/

summaryrefslogtreecommitdiff
path: root/mercurial/web/templates
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-08-03 12:24:13 -0500
committerLuke Hoersten <[email protected]>2020-08-03 12:24:13 -0500
commit04c0978ae774f3db5a38ed0a295af91bc0346fd5 (patch)
treeb51ebeb4166e5112b667cda4aadfd207b41d8155 /mercurial/web/templates
parent96c05b0e05d2932465f0da6f72d8281c424fb565 (diff)
Added worker restats for uwsgi to reduce memory runaway.
Diffstat (limited to 'mercurial/web/templates')
-rw-r--r--mercurial/web/templates/hgweb.ini.j23
1 files changed, 3 insertions, 0 deletions
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