-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
uwsgi.ini
38 lines (33 loc) · 1.03 KB
/
uwsgi.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
[uwsgi]
; uwsgi setup
master = true
auto-procname = true
; space in following line is important
procname-prefix = "harvey "
strict = true
vacuum = true
die-on-term = true
need-app = true
single-interpreter = true
; threads, lazy apps, and py-call-uwsgi-fork-hooks are needed for sentry
enable-threads = true
lazy-apps = true
py-call-uwsgi-fork-hooks = true
; stats
stats = /tmp/harvey.stats
memory-report = true
; app setup
uwsgi-socket = 127.0.0.1:5000
module = wsgi:APP
; tuning
; workers = 2
; max-worker-lifetime = 300
socket-timeout = 30
buffer-size = 24576
# crons
cron = 0 0 -1 -1 -1 venv/bin/python scripts/remove_old_logs.py
; logging
daemonize = $(HOME)/harvey/logs/harvey.log
; TODO: unify timestamps since internal Python is logging with `asctime`
log-format = %(ltime) [pid: %(pid)|app: -|req: -/-] %(addr) (%(user)) {%(vars) vars in %(pktsize) bytes} %(method) %(uri) => generated %(rsize) bytes in %(msecs) msecs (%(proto) %(status)) %(headers) headers in %(hsize) bytes (%(switches) switches on core %(core))
log-maxsize = 2000000 ; 2mb