Use one backend server at a time

2014-01-30 Thread Ryan O'Hara
I'd like to define a proxy (tcp mode) that has multiple backend servers yet only uses one at a time. In other words, traffic comes into the frontend and is redirected to one backend server. Should that server fail, another is chosen. I realize this might be an odd thing to do with haproxy, and

Re: Use one backend server at a time

2014-01-30 Thread PiBa-NL
Im not 100% sure but if i remember something i read correctly it was like using a stick on dst stick-table. That way the sticktable will make sure all traffic go's to a single server, and only when it fails another server will be put in the sticktable that will only have 1 entry. You might

Re: Use one backend server at a time

2014-01-30 Thread PiBa-NL
ok found it again in the part about Automatic failover without failback http://blog.exceliance.fr/2014/01/17/emulating-activepassing-application-clustering-with-haproxy/ PiBa-NL schreef op 30-1-2014 19:14: Im not 100% sure but if i remember something i read correctly it was like using a stick

Re: Use one backend server at a time

2014-01-30 Thread Ryan O'Hara
On Thu, Jan 30, 2014 at 07:14:30PM +0100, PiBa-NL wrote: Im not 100% sure but if i remember something i read correctly it was like using a stick on dst stick-table. That way the sticktable will make sure all traffic go's to a single server, and only when it fails another server will be put

Re: Use one backend server at a time

2014-01-30 Thread PiBa-NL
This should (i expect) work with any number of backup servers, as long as you only need 1 active. Ryan O'Hara schreef op 30-1-2014 19:34: On Thu, Jan 30, 2014 at 07:14:30PM +0100, PiBa-NL wrote: Im not 100% sure but if i remember something i read correctly it was like using a stick on dst

Re: Use one backend server at a time

2014-01-30 Thread Ryan O'Hara
On Thu, Jan 30, 2014 at 08:03:37PM +0100, PiBa-NL wrote: can you doublecheck the sticktable fills properly with the socket commands, and you are running with nbproc 1 ? It appears that 1.4 does support 'show table' via the stats socket. Yes, nbproc is 1. can you post the (anonimized) config

Re: Use one backend server at a time

2014-01-30 Thread Willy Tarreau
On Thu, Jan 30, 2014 at 03:57:56PM -0600, Ryan O'Hara wrote: On Thu, Jan 30, 2014 at 08:03:37PM +0100, PiBa-NL wrote: can you doublecheck the sticktable fills properly with the socket commands, and you are running with nbproc 1 ? It appears that 1.4 does support 'show table' via the stats