forked from plonegovbr/portal.buildout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vm.cfg
82 lines (69 loc) · 2 KB
/
vm.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
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
79
80
81
[buildout]
# This buildout is for stable builds for Images like Virtualbox, Vagrant, ...
extends =
buildout.d/base.cfg
buildout.d/use-zeo.cfg
buildout.d/maintenance.cfg
parts +=
instance1
instance2
haproxy-build
haproxy-conf
zeo
portal
supervisor
[instance]
http-address = ${hosts:instance}:${ports:instance}
port-base = 1
zodb-cache-size = 80000
debug-mode = off
zserver-threads = 2
effective-user = ${users:os}
[instance1]
<=instance
port-base=1
[instance2]
<=instance
port-base=2
[haproxy-build]
recipe = plone.recipe.haproxy
url = http://dist.plone.org/thirdparty/haproxy-1.4.8.zip
target = linux26
[haproxy-conf]
recipe = collective.recipe.template
input = ${buildout:directory}/etc/templates/haproxy.conf.in
output = ${buildout:directory}/etc/haproxy.conf
maxconn = 24000
ulimit-n = 65536
user = ${users:os}
group = ${users:os}
bind = ${hosts:haproxy}:${ports:haproxy}
[supervisor]
recipe = collective.recipe.supervisor
plugins =
supervisor>2.1
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 haproxy (autostart=true startsecs=35) ${buildout:directory}/bin/haproxy [ -f ${buildout:directory}/etc/haproxy.conf -db ]${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
[portal]
recipe = collective.recipe.plonesite
site-id = portal
default-language = pt-br
zeoserver = zeo
profiles =
brasil.gov.portal:default
brasil.gov.portal:initcontent
site-replace = True