Developer ZEO setup: server and two clients on one machine, one for debugging?
I'm interested in setting up a ZEO configuration to have a console debugger active at the same time requests are available through the browser. I haven't tried ZEO yet because I'm experimenting with Zope on a single machine, and its a laptop using DHCP at that, so I don't have a ton of flexibility on adding additional IP addresses, although maybe defining aliases in windows' HOSTS file will do. http://www.zope.org/Members/dshaw/AdvancedSiteSetup Is it practical/possible to set up the ZEO server and two clients, one for requests and one for console debugging, on a WindowsXP Laptop with 1 NIC (DHCP, 1 IP addr and 'localhost')? I need advice on what and where to install various duplicate Zope components when its all going on one machine. Is Zope 2.6 CVS a better version to run in this context, since there are no production-ready issues here? Is the current ZEO ready to work with Zope 2.6 CVS? Thanks for any info. I'll be sure to write up any sucessful configuration that comes out of this.
Jeff Kowalczyk wrote:
Is it practical/possible to set up the ZEO server and two clients, one for requests and one for console debugging, on a WindowsXP Laptop with 1 NIC (DHCP, 1 IP addr and 'localhost')?
Should be, I've done it on a Windows 2000 laptop before...
I need advice on what and where to install various duplicate Zope components when its all going on one machine.
What I'd do is install your Zope base and set up three INSTANCE_HOME's: one for your ZEO storage server one for your ZEO web client one for your ZEO console client
Is Zope 2.6 CVS a better version to run in this context, since there are no production-ready issues here?
No. I'd stick with Zope 2.5.1 and ZEO 1.0 final cheers, Chris
What I'd do is install your Zope base and set up three INSTANCE_HOME's: one for your ZEO storage server, (web client and console client)
How and where do you set multiple INSTANCE_HOME variables? I'm grepping INSTANCE_HOME in the installed 2.5.1, and it shows up in several places: C:\PROGRA~1\ZOPE\z2.py(540): import ZServer (comment sez gets INSTANCE_HOME) C:\PROGRA~1\ZOPE\Zope.cgi(18): INSTANCE_HOME=C:\Program Files\Zope C:\PROGRA~1\ZOPE\inst\make_instance.py(13): """Make an INSTANCE_HOME.""" C:\PROGRA~1\ZOPE\inst\make_resource.py(38): INSTANCE_HOME=%(cwd)s C:\PROGRA~1\ZOPE\lib\python\Globals.py(26): from App.FindHomes import INSTANCE_HOME, SOFTWARE_HOME C:\PROGRA~1\ZOPE\lib\python\Globals.py(40): data_dir = os.path.join(INSTANCE_HOME, 'var') As well as a mention FindHomes.py. Where do I put the calls to make_instance.get_ih(home)? Thanks.
Jeff Kowalczyk wrote:
What I'd do is install your Zope base and set up three INSTANCE_HOME's: one for your ZEO storage server, (web client and console client)
How and where do you set multiple INSTANCE_HOME variables?
http://www.zope.org/Members/4am/instancehome cheers, Chris
Jeff Kowalczyk writes:
What I'd do is install your Zope base and set up three INSTANCE_HOME's: one for your ZEO storage server, (web client and console client)
How and where do you set multiple INSTANCE_HOME variables? You do not.
Zope and ZEO can live in the same instance home. You want to read the "AdvancedSiteSetup" HowTo to be found on Zope.org. When you have different instant homes, then each process has one INSTANCE_HOME variable (of course), e.g. set in different "start" scripts. Dieter
participants (3)
-
Chris Withers -
Dieter Maurer -
Jeff Kowalczyk