forked from sgillies/pleiades3-buildout
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpleiades-production.cfg
140 lines (122 loc) · 3.16 KB
/
pleiades-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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# Pleiades test-production buildout. Should be further customized for actual production.
[buildout]
extends = buildout.cfg
parts =
# The ZEO server
zeoserver
# The unmonitored, unbalanced admin instance
instance1
# The balanced worker instances
instance2
instance3
instance4
instance5
# Debug and script instance
debug-instance
# Backups with rotation
backup
[ports]
zeo-server = xxxx
instance1 = xxxx
instance2 = xxxx
instance3 = xxxx
instance4 = xxxx
instance5 = xxxx
debug-instance = xxxx
[zeoserver]
recipe = plone.recipe.zeoserver
zeo-address = ${ports:zeo-server}
zeo-var = ${buildout:directory}/var
blob-storage = ${zeoserver:zeo-var}/blobstorage
pack-days = 7
[instance1]
recipe = plone.recipe.zope2instance
environment-vars =
VAYTROU_URI http://localhost:8889
DISABLE_PTS 1
eggs =
${buildout:eggs}
zcml =
pleiades.policy
pleiades.notredame
pleiades.placematch
pleiades.portlet.flickr
user = xxxxx:xxxxx
zodb-cache-size = 30000
zeo-client-cache-size = 1
debug-mode = off
zserver-threads = 1
zeo-client = true
zeo-address = ${zeoserver:zeo-address}
blob-storage = ${zeoserver:zeo-var}/blobstorage
shared-blob = on
http-address = ${hosts:instance1}:${ports:instance1}
enable-product-installation = on
[instance2]
<= instance1
http-address = ${hosts:instance2}:${ports:instance2}
enable-product-installation = off
[instance3]
<= instance2
http-address = ${hosts:instance3}:${ports:instance3}
[instance4]
<= instance2
http-address = ${hosts:instance4}:${ports:instance4}
[instance5]
<= instance2
http-address = ${hosts:instance5}:${ports:instance5}
[debug-instance]
<= instance2
http-address = ${hosts:debug-instance}:${ports:debug-instance}
[logrotate.conf]
recipe = zc.recipe.deployment:configuration
text =
rotate 4
weekly
create
compress
delaycompress
${buildout:directory}/var/log/instance1*.log {
sharedscripts
postrotate
/bin/kill -USR2 $(cat ${buildout:directory}/var/instance1.pid)
endscript
}
${buildout:directory}/var/log/instance2*.log {
sharedscripts
postrotate
/bin/kill -USR2 $(cat ${buildout:directory}/var/instance2.pid)
endscript
}
${buildout:directory}/var/log/instance3*.log {
sharedscripts
postrotate
/bin/kill -USR2 $(cat ${buildout:directory}/var/instance3.pid)
endscript
}
${buildout:directory}/var/log/instance4*.log {
sharedscripts
postrotate
/bin/kill -USR2 $(cat ${buildout:directory}/var/instance4.pid)
endscript
}
${buildout:directory}/var/log/instance5*.log {
sharedscripts
postrotate
/bin/kill -USR2 $(cat ${buildout:directory}/var/instance5.pid)
endscript
}
${buildout:directory}/var/log/zeoserver.log {
postrotate
/bin/kill -USR2 $(cat ${buildout:directory}/var/zeoserver.pid)
endscript
}
${buildout:directory}/var/log/balancer*.log {
sharedscripts
postrotate
/bin/kill -USR1 $(cat ${balancer:run-directory}/balancer.pid)
endscript
}
[backup]
recipe = collective.recipe.backup
backup_blobs = False