# HG changeset patch # User Luke Hoersten # Date 1596475453 18000 # Node ID 7ced28b4207cee1502e6ead16629f8aaac41299e # Parent b1cab99990c685a67b151f98506ce5b39f43107c Added worker restats for uwsgi to reduce memory runaway. diff -r b1cab99990c6 -r 7ced28b4207c 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