-
Notifications
You must be signed in to change notification settings - Fork 0
/
prefrontend-only_ca.cfg
112 lines (92 loc) · 2.47 KB
/
prefrontend-only_ca.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[buildout]
parts =
varnish-build
haproxy-build
varnish1
cache-config1
balancer-config1
supervisor
extends = customizeme.cfg
config/projects.cfg
http://dist.plone.org/release/4.3.3/versions.cfg
versions.cfg
find-links =
https://pypi.upc.edu/links
# network speedup
socket-timeout = 3
allow-hosts =
pypi.upc.edu
*.python.org
docutils.sourceforge.net
prdownloads.sourceforge.net
effbot.org
[downloads]
nginx = http://pypi.upc.edu/static/nginx-1.6.0.tar.gz
varnish = http://pypi.upc.edu/static/varnish-4.0.2.tar.gz
haproxy = http://pypi.upc.edu/static/haproxy-1.5.3.tar.gz
[hosts]
cache = 0.0.0.0
cache-telnet = 0.0.0.0
balancer = 0.0.0.0
supervisor = 0.0.0.0
[ports]
cache1 = 9001
cache-telnet1 = 9101
balancer1 = 10001
supervisor = 8082
[users]
cache = plone
balancer = plone
supervisor = plone
[varnish-build]
recipe = zc.recipe.cmmi
url = ${downloads:varnish}
[haproxy-build]
recipe = plone.recipe.haproxy
url = ${downloads:haproxy}
# target = generic
target = linux26
[cache-config1]
recipe = collective.recipe.template
input = ${buildout:directory}/config/templates/cache1.conf.template
output = ${buildout:directory}/config/cache1.conf
[varnishCommon]
recipe = plone.recipe.varnish:instance
daemon = ${buildout:parts-directory}/varnish-build/sbin/varnishd
mode = foreground
cache-size = 256M
cache-type = malloc
#verbose-headers = on
user = ${users:cache}
[varnish1]
<= varnishCommon
bind = ${hosts:cache}:${ports:cache1}
config = ${buildout:directory}/config/cache1.conf
name = varnish1
telnet = ${hosts:cache-telnet}:${ports:cache-telnet1}
[balancerConfig]
group = plone
maxconn = 24000
[balancer-config1]
<= balancerConfig
recipe = collective.recipe.template
input = ${buildout:directory}/config/templates/balancer_ca.conf.template
output = ${buildout:directory}/config/balancer1.conf
[supervisor]
recipe = collective.recipe.supervisor
port = ${ports:supervisor}
supervisord-user = ${users:supervisor}
user = admin
password = ${supervisor-passwd:passwd}
serverurl = http://${hosts:supervisor}:${ports:supervisor}
programs =
30 haproxy1 ${buildout:directory}/bin/haproxy [-f ${buildout:directory}/config/balancer1.conf -db] true ${users:balancer}
50 varnish1 ${buildout:directory}/bin/varnish1 [-S ${buildout:directory}/config/.varnishsecret] true ${users:cache}
groups =
10 balancers haproxy1
20 cache varnish1
plugins =
superlance
mr.laforge
supervisor-serialrestart
supervisor-wildcards