source: main/waeup.fceokene/branches/0.1/buildout-zeo.cfg @ 13490

Last change on this file since 13490 was 9886, checked in by uli, 12 years ago

Enable async ZODB in ZEO server.

File size: 3.2 KB
Line 
1# A buildout configuration for a ZEO server and two ZEO clients.
2#
3[buildout]
4extends = buildout.cfg
5parts =
6    eggbasket
7    app
8    i18n
9    test
10    mkdirs
11    zpasswd
12    zope_conf
13    site_zcml
14    zdaemon_conf
15    deploy_ini
16    debug_ini
17    profile_ini
18    zeo1_ini
19    zeo2_ini
20    waeupdocs
21    coverage-detect
22    coverage-report
23# kofactl creation must be _after_ app!
24    kofactl
25# For backward compatibility, telling buildout not to throw away
26# the data and log subdirectories from the parts directory.
27    data
28    log
29
30    zeo_server
31    zope_conf_zeo_1
32    zope_conf_zeo_2
33    zeo1_ini
34    zeo2_ini
35    zeo1_conf
36    zeo2_conf
37    zeo_client1
38    zeo_client2
39
40[zeo_server]
41recipe = zc.zodbrecipes:server
42zeo.conf =
43  <zeo>
44    address ${kofa_params:server_port}
45  </zeo>
46
47  <blobstorage 1>
48    blob-dir ${zope_conf:blobstorage}
49    <filestorage 1>
50      path ${zope_conf:filestorage}/Data.fs
51    </filestorage>
52  </blobstorage>
53
54  <filestorage async>
55    path ${zope_conf:filestorage}/Data.async.fs
56  </filestorage>
57
58  <eventlog>
59    # This sets up logging to a file.
60    # The "path" setting can be a relative or absolute
61    # filesystem path.
62    <logfile>
63      path ${zope_conf:logfiles}/z3.log
64      formatter zope.exceptions.log.Formatter
65    </logfile>
66    # This sets up logging to to standard output.
67    # The "path" setting can be the tokens STDOUT or STDERR
68    #  <logfile>
69    #    path STDOUT
70    #    formatter zope.exceptions.log.Formatter
71    #  </logfile>
72  </eventlog>
73
74[zope_conf_zeo_1]
75recipe = collective.recipe.template
76input = etc/zope_zeo1.conf.in
77output = ${buildout:parts-directory}/etc/zope_zeo1.conf
78filestorage = ${buildout:directory}/var/filestorage
79blobstorage = ${buildout:directory}/var/blobstorage
80logfiles = ${buildout:directory}/var/log
81extra =
82# extra = <grokwarnings>True</grokwarnings>
83# 'extra' is copied verbatim. Use it for product config sections and so.
84
85[zope_conf_zeo_2]
86recipe = collective.recipe.template
87input = etc/zope_zeo2.conf.in
88output = ${buildout:parts-directory}/etc/zope_zeo2.conf
89filestorage = ${buildout:directory}/var/filestorage
90blobstorage = ${buildout:directory}/var/blobstorage
91logfiles = ${buildout:directory}/var/log
92extra =
93# extra = <grokwarnings>True</grokwarnings>
94# 'extra' is copied verbatim. Use it for product config sections and so.
95
96[zeo1_ini]
97recipe = collective.recipe.template
98input = etc/zeo1.ini.in
99output = ${buildout:parts-directory}/etc/zeo1.ini
100
101[zeo2_ini]
102recipe = collective.recipe.template
103input = etc/zeo2.ini.in
104output = ${buildout:parts-directory}/etc/zeo2.ini
105
106[zeo1_conf]
107recipe = collective.recipe.template
108input = etc/zeo1.conf.in
109output = ${buildout:parts-directory}/etc/zeo1.conf
110
111[zeo2_conf]
112recipe = collective.recipe.template
113input = etc/zeo2.conf.in
114output = ${buildout:parts-directory}/etc/zeo2.conf
115
116
117[zeo_client1]
118# See http://pypi.python.org/pypi/zc.recipe.egg for details...
119recipe = zc.recipe.egg
120eggs = waeup.fceokene [beaker]
121arguments = "${buildout:parts-directory}/etc/zeo1.conf"
122scripts = kofactl=zeo_client1
123
124[zeo_client2]
125# See http://pypi.python.org/pypi/zc.recipe.egg for details...
126recipe = zc.recipe.egg
127eggs = waeup.fceokene [beaker]
128arguments = "${buildout:parts-directory}/etc/zeo2.conf"
129scripts = kofactl=zeo_client2
130
Note: See TracBrowser for help on using the repository browser.