[Zope-dev] Multi-threaded pcgi vs single-threaded pcgi

2001-10-31 Thread Remi Delon

Hi, I have a zope backend running behind an Apache server.
Up to now, I've been using the standard pcgi configuration.
Here is my understanding of what's happening (correct me if
I'm wrong):
  - When Apache gets a request, it calls pcgi-wrapper. If
the pcgi_publisher process is running, pcgi-wrapper connects
to it and gets the page. If pcgi_publisher is not running, pcgi-wrapper
first starts pcgi_publisher and then connects to it and gets the page.

Now, the problem I have with that is that pcgi_publisher is
single-threaded. I have to run long-running background tasks at night
to update my database, and I run them inside Zope. During that time,
the site is unavailable because Zope is busy executing what should
be a background task.

The solution I want to use is to start Zope in multi-threaded pcgi
mode, using the standard Zope/start script with the correct flags (-p)
This works fine, as long as I manually execute the start script. But
if Zope ever crashes, I would like Apache (maybe through pcgi-wrapper)
to automatically restart Zope in multi-threaded pcgi mode, when
someone requests a page.

How can I achieve that ?

Thanks.

RĂ©mi.


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Multi-threaded pcgi vs single-threaded pcgi

2001-10-31 Thread Dieter Maurer

Remi Delon writes:
  
  The solution I want to use is to start Zope in multi-threaded pcgi
  mode, using the standard Zope/start script with the correct flags (-p)
  This works fine, as long as I manually execute the start script. But
  if Zope ever crashes, I would like Apache (maybe through pcgi-wrapper)
  to automatically restart Zope in multi-threaded pcgi mode, when
  someone requests a page.
There are supervisor scripts around (-- mailing list archives)
that continously check Zopes availability and restart, if it
becomes unavailable.

Not precisely what you want, but maybe sufficient


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )