Comment 9 for bug 702024

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 702024] Re: Restarting codehosting SSH server drops existing connections

On 11 February 2011 11:48, Andrew Bennetts
<email address hidden> wrote:
> Also, it's probably worth trying to configure HAProxy to ignore the HTTP
> service, and just do TCP proxying without polling the HTTP service
> first.  After an instance receives SIGTERM it should immediately stop
> listening on its TCP port (even though it will continue to service its
> existing connections), which AIUI should interact nicely with HAProxy
> (if can't connect to the first instance it tries it can try another
> instance instead without any disruption to the client).

+1. In some ways having a http status indication seems like an
unnecessary frill: if the server is accepting tcp connections it's
reasonable for haproxy to send connections to it. If it's accepting
connections but misbehaving then a sysadmin can kill it.