[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: graceful stop?


On 4/13/07, Jonathan Swartz <suppressed> wrote:
It doesn't seem worth the risk, especially if
GracefulStopTimeout is only 1 second. The server will be unable to respond
for a second longer, but most load balancers should be able to react quickly
to that. (I think).

I would definitely set it longer than 1 second.  I'd probably give it
at least 10.

Incidentally, I fake this in mod_perl 1 by having my server take down
the page that the load balancer uses to see if the machine is up, and
waiting 60 seconds before stopping the server.  This gives the load
balancer time to see the server is "down" and divert traffic, and lets
the current requests finish.  If you have multiple machines behind a
load balancer, this is a pretty safe way to do it.

- Perrin


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.