forked from thorrak/fermentrack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circus.ini
78 lines (67 loc) · 2.54 KB
/
circus.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[circus]
check_delay = 5
endpoint = tcp://127.0.0.1:5555
pubsub_endpoint = tcp://127.0.0.1:5556
stats_endpoint = tcp://127.0.0.1:5557
loglevel = ERROR
logoutput = $(circus.env.HOME)/fermentrack/log/circusd.log
[watcher:Fermentrack]
cmd = $(circus.env.HOME)/venv/bin/chaussette --fd $(circus.sockets.Fermentrack) fermentrack_django.wsgi:application
use_sockets = True
numprocesses = 2
copy_env = True
virtualenv = $(circus.env.HOME)/venv
working_dir = $(circus.env.HOME)/fermentrack
# Log output, rotate every 2MB, keep 3 logfiles.
stderr_stream.class = FileStream
stderr_stream.filename = $(circus.env.HOME)/fermentrack/log/fermentrack-stderr.log
#stderr_stream.time_format = %Y-%m-%d %H:%M:%S
stderr_stream.max_bytes = 2097152
stderr_stream.backup_count = 3
#stdout_stream.class = FileStream
#stdout_stream.filename = $(circus.env.HOME)/fermentrack/log/fermentrack-stdout.log
#stdout_stream.time_format = %Y-%m-%d %H:%M:%S
#stdout_stream.max_bytes = 2097152
#stdout_stream.backup_count = 3
[socket:Fermentrack]
host = 0.0.0.0
port = 8123
[env:Fermentrack]
# There appears to be a bug of some kind that prevents variable expansion of $(circus.env.HOME) here.
# TODO - Research this, and determine if there is a way to correct for the bug
#PYTHONPATH = $(circus.env.HOME)/fermentrack
PYTHONPATH = /home/fermentrack/fermentrack
[watcher:processmgr]
cmd = $(circus.env.HOME)/venv/bin/python
args = $(circus.env.HOME)/fermentrack/utils/processmgr.py
virtualenv = $(circus.env.HOME)/venv
working_dir = $(circus.env.HOME)/fermentrack
copy_env = True
use_sockets = False
numprocesses = 1
# Log output, rotate every 2MB, keep 3 logfiles.
stderr_stream.class = FileStream
stderr_stream.filename = $(circus.env.HOME)/fermentrack/log/fermentrack-processmgr.log
#stderr_stream.time_format = %Y-%m-%d %H:%M:%S
stderr_stream.max_bytes = 2097152
stderr_stream.backup_count = 3
[watcher:huey]
cmd = $(circus.env.HOME)/venv/bin/python
args = $(circus.env.HOME)/fermentrack/manage.py run_huey
virtualenv = $(circus.env.HOME)/venv
working_dir = $(circus.env.HOME)/fermentrack
copy_env = True
#copy_path = True
use_sockets = False
numprocesses = 1
# Log output, rotate every 2MB, keep 3 logfiles.
stderr_stream.class = FileStream
stderr_stream.filename = $(circus.env.HOME)/fermentrack/log/huey-stderr.log
stderr_stream.refresh_time = 0.3
stderr_stream.max_bytes = 2097152
stderr_stream.backup_count = 3
stdout_stream.class = FileStream
stdout_stream.filename = $(circus.env.HOME)/fermentrack/log/huey-stdout.log
stdout_stream.refresh_time = 0.3
stdout_stream.max_bytes = 2097152
stdout_stream.backup_count = 3