[Zope] sharing instance_home?

2009-11-04 Thread Jürgen Herrmann
currently i'm running a single zope2 process with relstorage
as storage backend. to improve performance for our end users
i'd like to fire up a 2nd zope2 process that will handle all
internal background processes and db packing.

for simplicity's sake i'd like to share the instance_home
directory between these two processes, just use a different
config file to enter a different http port for each server.

no how can i run 2 zope processes from the same instance
home with 2 different config files?
modifying $INSTANCE_HOME/zopectl to include a different
config file name does not work, as it's also contained in
$INSTANCE_HOME/runzope. renaming/modifying runzope does not
work either, as it's name is hardcoded somewhere in zopectl.

thanks in advance and best regards,
jürgen herrmann
--
 XLhost.de - eXperts in Linux hosting ® 

XLhost.de GmbH
Jürgen Herrmann, Geschäftsführer
Boelckestrasse 21, 93051 Regensburg, Germany

Geschäftsführer: Volker Geith, Jürgen Herrmann
Registriert unter: HRB9918
Umsatzsteuer-Identifikationsnummer: DE245931218

Fon:  +49 (0)800 XLHOSTDE [0800 95467833]
Fax:  +49 (0)800 95467830

WEB:  http://www.XLhost.de
IRC:  #xlh...@irc.quakenet.org

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] sharing instance_home?

2009-11-04 Thread Chris Withers
Jürgen Herrmann wrote:
 no how can i run 2 zope processes from the same instance
 home with 2 different config files?

What version of Zope is this?

Should be fine, provided the instances are configured to use different 
pid files, log files, local zodb cache files, etc...

Chris

-- 
Simplistix - Content Management, Batch Processing  Python Consulting
- http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] sharing instance_home?

2009-11-04 Thread Jürgen Herrmann

On Wed, November 4, 2009 15:05, Chris Withers wrote:
 Jürgen Herrmann wrote:
 no how can i run 2 zope processes from the same instance
 home with 2 different config files?

 What version of Zope is this?

 Should be fine, provided the instances are configured to use different
 pid files, log files, local zodb cache files, etc...

 Chris

- it's zope 2.12.1 .
- i configured different log/pid files in the different configs.

jürgen
--
 XLhost.de - eXperts in Linux hosting ® 

XLhost.de GmbH
Jürgen Herrmann, Geschäftsführer
Boelckestrasse 21, 93051 Regensburg, Germany

Geschäftsführer: Volker Geith, Jürgen Herrmann
Registriert unter: HRB9918
Umsatzsteuer-Identifikationsnummer: DE245931218

Fon:  +49 (0)800 XLHOSTDE [0800 95467833]
Fax:  +49 (0)800 95467830

WEB:  http://www.XLhost.de
IRC:  #xlh...@irc.quakenet.org

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] sharing instance_home?

2009-11-04 Thread Martijn Pieters
2009/11/4 Jürgen Herrmann juergen.herrm...@xlhost.de:
 currently i'm running a single zope2 process with relstorage
 as storage backend. to improve performance for our end users
 i'd like to fire up a 2nd zope2 process that will handle all
 internal background processes and db packing.

 for simplicity's sake i'd like to share the instance_home
 directory between these two processes, just use a different
 config file to enter a different http port for each server.

 no how can i run 2 zope processes from the same instance
 home with 2 different config files?
 modifying $INSTANCE_HOME/zopectl to include a different
 config file name does not work, as it's also contained in
 $INSTANCE_HOME/runzope. renaming/modifying runzope does not
 work either, as it's name is hardcoded somewhere in zopectl.

If you are using RelStorage you won't be saving much space by reusing
the instance home. I'd be wary of sharing the directory between
instances, because 3rd party products sometimes use it to store
instance-specific data (e.g. not sharable between 2 zope processes).

-- 
Martijn Pieters
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )