Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

sharing instance_home?

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


Juergen.Herrmann at XLhost

Nov 4, 2009, 5:59 AM

Post #1 of 7 (1843 views)
Permalink
sharing instance_home?

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: #XLhost [at] irc

_______________________________________________
Zope maillist - Zope [at] zope
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 )


chris at simplistix

Nov 4, 2009, 6:05 AM

Post #2 of 7 (1717 views)
Permalink
Re: sharing instance_home? [In reply to]

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 [at] zope
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 )


Juergen.Herrmann at XLhost

Nov 4, 2009, 6:38 AM

Post #3 of 7 (1711 views)
Permalink
Re: sharing instance_home? [In reply to]

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: #XLhost [at] irc

_______________________________________________
Zope maillist - Zope [at] zope
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 )


mj at zopatista

Nov 4, 2009, 8:04 AM

Post #4 of 7 (1709 views)
Permalink
Re: sharing instance_home? [In reply to]

2009/11/4 Jürgen Herrmann <Juergen.Herrmann [at] xlhost>:
> 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 [at] zope
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 )


chris at simplistix

Nov 4, 2009, 9:20 AM

Post #5 of 7 (1707 views)
Permalink
Re: sharing instance_home? [In reply to]

Martijn Pieters wrote:
> 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).

They do? That seems pretty evil... Have you got some examples?

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
_______________________________________________
Zope maillist - Zope [at] zope
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 )


mj at zopatista

Nov 4, 2009, 12:36 PM

Post #6 of 7 (1708 views)
Permalink
Re: sharing instance_home? [In reply to]

On 4. nov.. 2009, at 18.20, Chris Withers wrote:
> Martijn Pieters wrote:
>> 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).
>
> They do? That seems pretty evil... Have you got some examples?

Why would that be evil? That's what the instance home is for, to store
instance-specific data.

No examples here.

Martijn Pieters
_______________________________________________
Zope maillist - Zope [at] zope
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 )


Juergen.Herrmann at XLhost

Nov 5, 2009, 4:15 AM

Post #7 of 7 (1703 views)
Permalink
Re: sharing instance_home? [In reply to]

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
>

a few observations:
- running several zope processes inside one instance_home is
very simple via modified runzope shell scripts (just modify
config filename)
- trying the same via zopectl is a pita because:
o when doing a "zopectl start" it calls runzope in the end
and does not pass the config filename, instead runzope uses
the hardcoded one in itself
o zopectl abviously uses hard coded socket name and the daemon
manager refuses to start up twice...
o i got tired trying to fix that stuff, as making my own set of
startup scripts calling runzope only took me very little time.
works for me now.
what's the point of that really complex daemon manager anyway?
- i have not observed any product that puts runtime data in the
instance_home, except ThreadSafeCounter which uses lock files in
instance_home/var. i want to share these lock files between
processes anyway, so this is rather good than bad. no problems
with my other products.

best regards,
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: #XLhost [at] irc

_______________________________________________
Zope maillist - Zope [at] zope
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 )

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.