[ZODB-Dev] ZEO cache logging where clietn uses multiple ClientStorages
Chris Withers
chrisw@nipltd.com
Thu, 21 Nov 2002 15:31:58 +0000
(cc'ing zodb-dev since peiople there may have ideas)
Guido van Rossum wrote:
>>How about if the client uses more than one ClientStorage via ExternalMounts?
>
> Yes, that could do it. :-(
Would http://cvs.zope.org/Products/DBTab/ help with this at all?
> Each ClientStorage instance has its own
> ClientCache. And since they run in the same process, they share the
> cache tracing filename, but not the cache tracing file object... :-(
>
> I'm not sure about what to do about this. Maybe they should share the
> file object; maybe only the first one there should be tracing.
What I'd like to see is the file called
os.environ['ZEO_CACHE_TRACE']+'-'+storagename, if you see what I mean, that way
you can get a trace for each mounted storage as appropriate. I think the storage
name specified in ClientStorage's contructor would be ideal.
In my app, I can imagine the caches needing to be very different sizes, since
each storage varies in size and number of reads/writes a lot.
Would that be to easy do?
cheers,
Chris