Skip to content

Commit 609100f

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 609100f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

uwsgi.ini

+9-1
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
3-
workers = 20
4+
workers = 10
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)