Skip to content

Commit

Permalink
new uwsgi settings
Browse files Browse the repository at this point in the history
Enable some additional settings so worker processes get recycled
periodically, so they won't grow to use too much memory.

Also reduce the number of workers to 10.
  • Loading branch information
haarg committed May 10, 2024
1 parent 1386f3f commit 609100f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion uwsgi.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# https://uwsgi-docs.readthedocs.io/en/latest/Options.html
[uwsgi]
master = true
workers = 20
workers = 10
die-on-term = true
need-app = true
vacuum = true

disable-logging = true

Expand All @@ -11,3 +14,8 @@ buffer-size = 65535

early-psgi = true
perl-no-die-catch = true

max-worker-lifetime = 3600
max-requests = 1000
reload-on-rss = 300
harakiri = 60

0 comments on commit 609100f

Please sign in to comment.