[ZODB-Dev] ZEO server and client setup under 2.7.0b2
Jim Roepcke
jimr at tyrell.com
Wed Aug 27 12:36:41 EDT 2003
Chris,
I just download and installed 2.7.0b2. I've very excited about the
changes in 2.7, this is the first time I've tried it.
I downloaded it because it comes with ZEO built-in. I spent about a
day last week figuring out how to get ZEO running with Zope 2.6.1, it
wasn't fun. ;-)
There's a mkzopeinstance.py and mkzeoinstance.py (which apparently
creates a ZEO server instance), but no mkzeoclientinstance.py.
It was brought to my attention in #zope that mkzopeinstance.py used to
have an option to set up zope instance as a zeo client, but this has
been removed. Sure enough...
http://cvs.zope.org/Zope/utilities/
mkzopeinstance.py.diff?r1=1.2.2.1&r2=1.2.2.2&only_with_tag=Zope-2_7-
branch
Just wondering, why was this removed? I'm guessing you have a better
plan in mind for this or that what one ended up with after that script
was not ideal for some reason.
For ZEO newbies, having explicitly named scripts like
'mkzeoserverinstance.py' (replacing mkzeoinstance.py?) and
'mkzeoclientinstance.py' might help people instantly recognize what is
what.
If someone could describe the proper way to take a cleanly installed
2.7b2 and make a ZEO server and ZEO client with it, I'd really
appreciate it. I will document what I learn to be a correct setup
procedure so that perhaps it could be included in a ZEO.txt file in the
doc directory.
I'm also very interested in putting this into practice in a future
version of the Plone installer for Mac OS X, which I maintain.
Thanks Chris!
Jim
On Monday, August 18, 2003, at 02:34 PM, Chris McDonough wrote:
> Right. The basic gist is:
>
> <zodb_db>
> mount-point /
> <zeoclient>
> storage 1
> cache-size 20000000
> name zeostorage
> client myhostname
> var $INSTANCE/var
> </zeoclient>
> </zodb_db>
>
> zodb_db parameters: mount-point is the mount point within the ZODB.
>
> zeoclient parameters: storage is the storage name on the ZEO server
> (typically '1' or 'main'), cache-size is the ZEO client cache size in
> bytes, name is the name of the storage (useful if you mount multiple
> storages), client enables persistent cache files, and var says where
> to put them.
>
> There are other options you can explore within
> lib/python/Zope/Startup/zopeschema.xml and
> lib/python/ZODB/component.xml, but this should get you going.
<snip>
>> I'd just need some basic syntax reference or so.
>>
>> What I have already guessed is that I'll have to write something
>> into the zodb_db section of zope.conf ...
>>
>> Cheers
>>
>> Joachim
--
Jim Roepcke
Tyrell Software Corp <http://www.tyrell.com/>
More information about the ZODB-Dev
mailing list