-
Notifications
You must be signed in to change notification settings - Fork 32
/
production.cfg
51 lines (45 loc) · 1.33 KB
/
production.cfg
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
[buildout]
extends =
buildout.d/base.cfg
buildout.d/use-zeo.cfg
buildout.d/maintenance.cfg
parts +=
instance1
instance2
zeo
supervisor
[instance]
http-address = ${hosts:instance}:${ports:instance}
zodb-cache-size = 80000
debug-mode = off
zserver-threads = 2
effective-user = ${users:os}
zope-conf-additional =
<product-config collective.fingerpointing>
audit-log ${buildout:directory}/var/log/audit.log
audit-log-max-size 10485760
audit-log-old-files 30
</product-config>
[instance1]
<= instance
port-base = 1
[instance2]
<= instance
port-base = 2
[supervisor]
recipe = collective.recipe.supervisor
plugins = superlance
port = ${ports:supervisor}
user = ${supervisor-settings:user}
password = ${supervisor-settings:password}
serverurl = http://${hosts:supervisor}:${ports:supervisor}
programs =
10 zeo (autostart=true startsecs=10) ${zeo:location}/bin/runzeo true ${users:os}
20 instance1 (autostart=true startsecs=30) ${buildout:directory}/bin/instance1 [console] true ${users:os}
20 instance2 (autostart=true startsecs=30) ${buildout:directory}/bin/instance2 [console] true ${users:os}
logfile = ${buildout:directory}/var/log/supervisord.log
logfile_maxbytes = 5MB
logfile_backups = 10
loglevel = info
pidfile = ${buildout:directory}/var/supervisord.pid
nodaemon = false