-
Notifications
You must be signed in to change notification settings - Fork 1
/
uwsgi-analogws.ini
64 lines (46 loc) · 1.52 KB
/
uwsgi-analogws.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[uwsgi]
uid = cds
gid = cds
plugins = python36
pythonpath = /home/cds/analogues
chdir = /home/cds/analogues/webapps
touch-reload=/home/cds/analogues/webapps/analogws.py
; http://uwsgi-docs.readthedocs.io/en/latest/StaticFiles.html
socket = :7998
stats = 127.0.0.1:1716
daemonize = /var/log/cds/uwsgi-analogws.log
; master = 1
; workers = 20
; module = analogues.analogues
; https://stackoverflow.com/questions/34252892/using-flask-sqlalchemy-in-multiple-uwsgi-processes
; lazy-apps = true
; callable = application
; http://uwsgi-docs.readthedocs.io/en/latest/Snippets.html
http-websockets = true
master = true
; https://uwsgi-docs.readthedocs.io/en/latest/Cheaper.html?highlight=memory#setting-memory-limits
# set cheaper algorithm to use, if not set default will be used
cheaper-algo = spare
# minimum number of workers to keep at all times
cheaper = 2
# number of workers to spawn at startup
cheaper-initial = 5
# maximum number of workers that can be spawned
workers = 500
# how many workers should be spawned at a time
cheaper-step = 1
# soft limit will prevent cheaper from spawning new workers
# if workers total rss memory is equal or higher
cheaper-rss-limit-soft = 6000000000
memory-report = true
# hard limit will force cheaper to cheap single worker
# if workers total rss memory is equal or higher
cheaper-rss-limit-hard = 8000000000
mount = /analogws=analogws.py
manage-script-name = true
debug = true
log-level = DEBUG
;;
env=ANALOGUES_HOME=/home/cds/analogues
env=ANALOGUES_DATA=/cache/analogues
env=ANALOGUES_CACHE=/cache/data