diff options
| author | Luke Hoersten <[email protected]> | 2020-08-03 12:24:13 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2020-08-03 12:24:13 -0500 |
| commit | 04c0978ae774f3db5a38ed0a295af91bc0346fd5 (patch) | |
| tree | b51ebeb4166e5112b667cda4aadfd207b41d8155 /mercurial/web | |
| parent | 96c05b0e05d2932465f0da6f72d8281c424fb565 (diff) | |
Added worker restats for uwsgi to reduce memory runaway.
Diffstat (limited to 'mercurial/web')
| -rw-r--r-- | mercurial/web/templates/hgweb.ini.j2 | 3 |
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 |
