Skip to content

Commit 5648eea

Browse files
committed
new uwsgi settings
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.
1 parent 1386f3f commit 5648eea

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

uwsgi.ini

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
# https://uwsgi-docs.readthedocs.io/en/latest/Options.html
12
[uwsgi]
3+
strict = true
24
master = true
3-
workers = 20
5+
workers = 10
46
die-on-term = true
7+
need-app = true
8+
vacuum = true
59

610
disable-logging = true
711

@@ -11,3 +15,8 @@ buffer-size = 65535
1115

1216
early-psgi = true
1317
perl-no-die-catch = true
18+
19+
max-worker-lifetime = 3600
20+
max-requests = 1000
21+
reload-on-rss = 300
22+
harakiri = 60

0 commit comments

Comments
 (0)