[ZODB-Dev] DBTab + ZEO

Tino Wildenhain tino@wildenhain.de
Thu, 10 Apr 2003 12:58:23 +0200


Hi Florent,

Florent Guillaume wrote:
> Question regarding DBTab with ZEO.
> 
> I have a setup with two databases, one mounted at / and one at /foo.
> I want to serve those two databases, mounted like that, to several ZEO 
> clients.
> 
> If I understand the DBTab doc correctly, the way to do it is to have
> - one ZEO server serving a Data.fs for / on :9001
> - one ZEO server serving a Data.fs for /foo on :9002
> - and for each ZEO client, a dbtab.conf that describes the two ZEO 
> server to contact and where to mount each.

First of all, ZEO is not limited to only serve one storage at a time.
In fact you can use numbers or names for the storages and serve them
thru the same connection to the clients.
(ZEO ocumentation covers this)

> 
> I was wondering why it's not possible to have a single ZEO server that 
> somehow uses DBTab to mount the two databases, and serves them to simple 
> ZEO clients configured only to know about the single ZEO server. It 
> would simplify deployment a lot as all the knowledge of mounted 
> databases would then be in the server. Can I do that? How?


You could write a wrapper script for custom_zodb :-)
So ZEO/start.py could use it.

But I think that mounting can be a little more complicated.

Regards
Tino