Hi,

On 29.10.2014 23:09, Tom Keyser wrote:
> Along this same vein...
>
> We're using HAProxy to execute seamless mid-day deployments of
> high-volume critical services. The http-server-close option is set.
> The backend of an example service is like so:
>
>       serversvr2 192.168.1.19:80 <http://192.168.1.19:80> check
>       serversvr2_staging 192.168.1.19:8080 <http://192.168.1.19:8080>
>     disabled check
>
> Our deployment system is configured to copy new binaries to the
> svr2_staging server, then use the stats socket to change the
> svr2_staging state to "ready" and the svr2 state to "drain". My
> question is how can I be sure all existing sessions to the svr2 server
> are closed before I start copying binaries to it?
>
One idea that comes into my mind is to use a stick table and and poll as
long as there are server_id that belongs to a server
that should be upgraded.
The worse case would be polling as long as the expire timeout for the
stick-table.


> On Wed, Oct 29, 2014 at 12:06 PM, Baptiste <[email protected]
> <mailto:[email protected]>> wrote:
>
>     On Fri, Oct 24, 2014 at 4:37 PM, Ian Cooke <[email protected]
>     <mailto:[email protected]>> wrote:
>     > Hi,
>     >
>     > Can haproxy change the backend for an existing session?  I have
>     a stateless
>     > client/server and I thought 'redispatch' did what I want but it
>     seems that's
>     > only for the initial connection.  What I'd like is for a client
>     that's
>     > already been connected to maintain the frontend's connection but
>     change the
>     > session's backend server if the one it's connected to goes down.
>     >
>     > Thanks,
>     > Ian
>
>     Hi,
>
>     maybe http-server-close is the option you're looking for.
>
>     Baptiste
>
>
>
>
> -- 
>
cheers,
thomas

Reply via email to