Re: Session sticking to backup server

2014-09-29 Thread PiBa-NL
Take a look at 'non-stick' and or 'on-marked-up 
shutdown-backup-sessions' they might help with your issue.


Another option could be to remove the backup server from your config, 
and serve the static page with 'errorfile 503 
/etc/haproxy/errorfiles/503sorry.http'.


Dennis Jacobfeuerborn schreef op 29-9-2014 4:23:

Hi,
I just noticed something unexpected in a setup. After introducing backup
server it seems that my session sticks to the backup server even when
the live servers are back online.
Is there something special that needs to be done to tell haproxy that as
soon as a live server is back online it should send everyone to these
server(s) again instead of keeping them on the backup servers (which in
my case is just a static mainenance page)?

Regards,
   Dennis






Re: Session sticking to backup server

2014-09-29 Thread Dennis Jacobfeuerborn
Thanks for the pointer. That was exactly what I was looking for.

It would perhaps be a good idea to mention the non-stick option in the
backup section. Right now it says there:

Requests coming with a persistence cookie referencing the server will
always be served though.

This could be changed to:

Requests coming with a persistence cookie referencing the server will
always be served though (unless the non-stick option is specified).

That would give newbies a hint where to look for this kind of behaviour.

Regards,
  Dennis

On 29.09.2014 19:41, PiBa-NL wrote:
 Take a look at 'non-stick' and or 'on-marked-up
 shutdown-backup-sessions' they might help with your issue.
 
 Another option could be to remove the backup server from your config,
 and serve the static page with 'errorfile 503
 /etc/haproxy/errorfiles/503sorry.http'.
 
 Dennis Jacobfeuerborn schreef op 29-9-2014 4:23:
 Hi,
 I just noticed something unexpected in a setup. After introducing backup
 server it seems that my session sticks to the backup server even when
 the live servers are back online.
 Is there something special that needs to be done to tell haproxy that as
 soon as a live server is back online it should send everyone to these
 server(s) again instead of keeping them on the backup servers (which in
 my case is just a static mainenance page)?

 Regards,
Dennis