Comment 6 for bug 640065

Revision history for this message
Stuart Bishop (stub) wrote : Re: [Bug 640065] Re: appserver deployment must not interrupt live requests

On Wed, Oct 6, 2010 at 4:08 AM, Robert Collins
<email address hidden> wrote:
> I think its important because without a proper graceful story we'll
> only be guessing whether requests are finished, or not finished - the
> rate at which servers come down (cleanly) and come up (cleanly) is a
> strong determinator for how fast deployments can happen.

haproxy tells us when requests are finished.

1) Tell load balancer to take a server out of rotation
2) Wait until load balancer reports all connections are finished, or
timeout hit.
3) Bounce appserver
4) Tell load balancer to put server back in rotation

Note that this process works even when an appserver is totally messed
up, and for every other service we can load balance behind haproxy.

--
Stuart Bishop <email address hidden>
http://www.stuartbishop.net/