Skip to content

Commit 4a6f9b5

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.
1 parent 1386f3f commit 4a6f9b5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

uwsgi.ini

+8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
# https://uwsgi-docs.readthedocs.io/en/latest/Options.html
12
[uwsgi]
23
master = true
34
workers = 20
45
die-on-term = true
6+
need-app = true
7+
vacuum = true
58

69
disable-logging = true
710

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

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

0 commit comments

Comments
 (0)