[ZODB-Dev] ZEO & multiple storages

sean.upton@uniontrib.com sean.upton@uniontrib.com
Mon, 23 Jul 2001 09:57:49 -0700


I have a ZEO setup that has been working just fine for me without using the
-S option in start.py and specifying a module; however, I found out I had a
need for a second, nonundo-type storage for CST; to start out with, I'm just
trying to get my existing FileStorage to work, with no luck starting the
ZSS, and I don't know where to start in debugging this... I have some
details below; if anyone has any ideas, let me know.

Details:
Zope 2.3.2 source install / Python 1.5.2 / Debian testing (Linux 2.4/Sun
E450)
ZEO 1.3b3
==================================================================
dbstore1:/data/ZEO/ZopeStorageServer/lib/python/ZEO# more StorageConfig.py
import ZODB.FileStorage
main_storage=FileStorage.FileStorage('/data/ZEO/ZopeStorageServer/var/Data.f
s')
==================================================================
dbstore1:/data/ZEO/ZopeStorageServer/lib/python/ZEO# more
/usr/sbin/zeo_start 
#!/bin/sh
#ZEO - Zope Storage Server Startup Script
INSTANCE_HOME=/data/ZEO/ZopeStorageServer
export INSTANCE_HOME
/usr/bin/python1.5 $INSTANCE_HOME/lib/python/ZEO/start.py \
  -D -p 9000 -u www-data \
  -S main=StorageConfig:main_storage
  ZEO_SERVER_PID=$INSTANCE_HOME/var/ZEO_SERVER.pid \
  STUPID_LOG_FILE=$INSTANCE_HOME/var/ZEO_EVENTS.log \
  "$@"
==================================================================

This stuff works fine if you remove the -S option from the above script.

I've also tried this with:
  -S main=$INSTANCE_HOME/lib/python/ZEO/StorageConfig:main_storage

Are there any ways to successfully test start.py in this regard; I'm
starting out here wotihout an idea on how to proceed...

Any help anyone has would be greatly appreciated.

Sean

=========================
Sean Upton
Senior Programmer/Analyst
SignOnSanDiego.com
The San Diego Union-Tribune
619.718.5241
sean.upton@uniontrib.com
=========================