[ZODB-Dev] zc.recipe.zeo

David Pratt fairwinds at eastlink.ca
Fri Aug 3 10:00:25 EDT 2007


Hi Fred. Working with the new recipe but there does not seem to be a way 
to use the filestorage recipe together with it. I would like to do 
something like this

[zeoscripts]
recipe = zc.recipe.egg:script
eggs = ZODB3

[database]
recipe = zc.recipe.filestorage

[server]
recipe = zc.zodbrecipes:server
database = database
zeo.conf = <zeo>
               address 8105
               monitor-address 8106
               transaction-timeout 300
            </zeo>

to keep the database contained within the buildout and to produce a 
zeo.conf like

<zeo>
    address 8105
    monitor-address 8106
    transaction-timeout 300
</zeo>
<filestorage 1>
    path /my/buildout/path/database/Data.fs
</filestorage>

I'll take a look at the recipe since it should be possible to utilize 
some of what is in zc.recipe.zeo which has this behaviour when database 
is defined as an option, otherwise it would pass to do what it is 
currently doing. I use other backend storages also so would like to have 
  it operate automatic with filestorage recipe or manually configured. 
Many thanks.

Regards,
David












Fred Drake wrote:
> On 8/3/07, David Pratt <fairwinds at eastlink.ca> wrote:
>> Hi there. zc.recipe.zeo has not yet made it to the cheeseshop. It would
>> be great if someone could put it there. If you want me to do it that is
>> fine since I have other packages on cheeseshop. The port for zeo on is
>> also hardcoded for 8100 but I am wanting to run more than a single ZEO
>> server instance per physical server so it looks like it needs a fix.
> 
> I've been using zc.zodbrecipes:server, including
> 
>   <zeo>
>     address 9000
>   </zeo>
> 
> in the value for the zeo.conf key (replacing 9000 with your chosen port).
> 
>> Question about thread setting in buildout. In zope2's zope.conf you just
>> set the no of threads. In zc.zope3recipes, there is no mention of
>> setting threads. I ask this since setting threads to 1 improved
>> performance according to the recent high performance zope session by
>> Lovely systems at europython. Many thanks.
> 
> You can include the line "threads 1" as part of the value for
> zope.conf in the instance part.
> 
> 
>   -Fred
> 


More information about the ZODB-Dev mailing list