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

Mailing List Archive: Zope: Dev

zope3 shutdown isn't a proper shutdown?

 

 

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


agroszer at gmail

Oct 25, 2009, 7:16 AM

Post #1 of 2 (247 views)
Permalink
zope3 shutdown isn't a proper shutdown?

Hello,

I have the bad feeling (still need to investigate further) that when
running zope3 with WSGI and paster the shutdown is not a proper
shutdown but a real hard kill/terminate process. On win32 and *nix
too. I remember vaguely that with zserver it wasn't like this.

That means e.g. the FileStorage index is not written -- that means it
has to be redone on each startup, what costs time.
Or transactions killed in the middle of doing something.

Anyone out there noticed the same? Even better question: how to nicely
stop a WSGI/paster Z3 server (without ZMI ServerControl)

--
Best regards,
Adam GROSZER mailto:agroszer[at]gmail.com
--
Quote of the day:
Positive attitude makes all the difference in the world

_______________________________________________
Zope-Dev maillist - Zope-Dev[at]zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )


ct at gocept

Oct 31, 2009, 6:28 AM

Post #2 of 2 (175 views)
Permalink
Re: zope3 shutdown isn't a proper shutdown? [In reply to]

On 10/25/2009 03:16 PM, Adam GROSZER wrote:
> Hello,
>
> I have the bad feeling (still need to investigate further) that when
> running zope3 with WSGI and paster the shutdown is not a proper
> shutdown but a real hard kill/terminate process. On win32 and *nix
> too. I remember vaguely that with zserver it wasn't like this.

Right, there's some more or less delicate dance going on.

> That means e.g. the FileStorage index is not written -- that means it
> has to be redone on each startup, what costs time.

Checking that is easy: stop the process and look whether the index file
was written or not.

> Or transactions killed in the middle of doing something.

I think ZServer didn't do anything special about that. If you happen to
have a request running it probably just ended anyway ... but I'm just
guessing.

> Anyone out there noticed the same? Even better question: how to nicely
> stop a WSGI/paster Z3 server (without ZMI ServerControl)

Signal handling (on Unix) comes to mind.

Christian

--
Christian Theune · ct[at]gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development

_______________________________________________
Zope-Dev maillist - Zope-Dev[at]zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )

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


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.