[Zope-ZEO] One ZSS : Multiple Data.fs files
Jim Fulton
jim@digicool.com
Wed, 26 Jul 2000 08:19:50 -0400
Bill Anderson wrote:
>
> Jim, told me how to connect _to_ the correct data.fs as served up by
> the ZSS, and I can see how that'd work. It's the 'getting the ZSS stared
> up' part working that is bugging me. :(
>
> I thought that the -S option would be of the format:
> ... -SSiteOne=/path/to/SiteOne-Data.fs
>
> but that barfs about modules not being found. :(
>
> Anyone done this,
Yes
> and/or know the proper parameters to get a ZSS to
> serve mulitple databases?
The part after the '=' is a module name. For example,
suppose you have the file '/data/Sites.py'::
import ZODB.FileStorage
SiteOne=ZODB.FileStorage.FileStorage(
'/path/to/SiteOne-Data.fs')
then you'd start the server with:
... -SSiteOne=/data/Sites.py
> On that note, have there been any tests to determine if multiple ZSSes
> or, a single ZSS with multiple databases is better, in terms of response
> speeds and resource usage?
I haven't done any tests. If the server is not stressed, then it's
simpler to have one server. If the server is stressed, then, obviously,
it would be better to split load over multiple servers, possibly on multiple
server machines.
Jim
--
Jim Fulton mailto:jim@digicool.com Python Powered!
Technical Director (888) 344-4332 http://www.python.org
Digital Creations http://www.digicool.com http://www.zope.org
Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission. Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.