Re: HaProxy for SFTP load balancing

2016-10-18 Thread Andrew Smalley
ing. > > > > Requesting you to assist us to resolve the issue. > > > > > > Thanks in advance. > > > > > > > > -Original Message- > From: "Andrew Smalley" > Sent: Thursday, October 6, 2016 7:43pm > To: "vi...@abi

HaProxy for SFTP load balancing

2016-10-18 Thread malreddy . tugu
er 6, 2016 7:43pm To: "vi...@abinnovative.com" Cc: "Lukas Tribus" , "HAProxy" , malreddy.t...@abinnovative.com Subject: Re: HaProxy for SFTP load balancing If you want a connect to port check you can use the below example listen sftpbind 192.168.100.100:8022 transparent

Re: HaProxy for SFTP load balancing

2016-10-07 Thread Igor Cicimov
On Sat, Oct 8, 2016 at 9:52 AM, vi...@abinnovative.com < vi...@abinnovative.com> wrote: > Hi All, > > Thanks, I have changed the options like check port 22 rise falls > retries re-dispatch etc.. nothing works. > > As my client utility is written in apache camel, so it is retrying 3 times > min

Re: HaProxy for SFTP load balancing

2016-10-07 Thread vi...@abinnovative.com
Hi All, Thanks, I have changed the options like check port 22 rise falls retries re-dispatch etc.. nothing works. As my client utility is written in apache camel, so it is retrying 3 times min, I have only two nodes for the haproxy, so one node gets alternatively failure and the second r

Re: HaProxy for SFTP load balancing

2016-10-07 Thread Igor Cicimov
On 8 Oct 2016 2:16 am, "Willy Tarreau" wrote: > > Hi Igor, > > On Fri, Oct 07, 2016 at 08:41:12PM +1100, Igor Cicimov wrote: > > > Listen > > > ... > > > ... > > > Retries 3 > > > Option redispatch > > > > Vijay, did you read Lukas's email? Did you do as he suggested? Without > > health check noth

Re: HaProxy for SFTP load balancing

2016-10-07 Thread Willy Tarreau
Hi Igor, On Fri, Oct 07, 2016 at 08:41:12PM +1100, Igor Cicimov wrote: > > Listen > > ... > > ... > > Retries 3 > > Option redispatch > > Vijay, did you read Lukas's email? Did you do as he suggested? Without > health check nothing will work, how do you expect for haproxy to know that > a backend

Re: HaProxy for SFTP load balancing

2016-10-07 Thread Igor Cicimov
On 07/10/2016 7:52 pm, "Vijay .D.R" wrote: > > Hi Willy, > > I read it in a forum and I do the changes in haproxy.cfg like below and it's not working as expected. > > Listen > ... > ... > Retries 3 > Option redispatch Vijay, did you read Lukas's email? Did you do as he suggested? Without health c

Re: HaProxy for SFTP load balancing

2016-10-07 Thread Vijay .D.R
Hi Willy, I read it in a forum and I do the changes in haproxy.cfg like below and it's not working as expected. Listen ... ... Retries 3 Option redispatch

Re: HaProxy for SFTP load balancing

2016-10-06 Thread Willy Tarreau
On Fri, Oct 07, 2016 at 09:25:27AM +0530, vi...@abinnovative.com wrote: > Great & Thanks Fellaws. > > But i see |option redispatch|only works for HTTP proxies, am a right. No, that's wrong. redispatch works at the TCP connection level. It's used both with HTTP and TCP. What makes you think it's o

Re: HaProxy for SFTP load balancing

2016-10-06 Thread vi...@abinnovative.com
Great & Thanks Fellaws. But i see |option redispatch|only works for HTTP proxies, am a right. I am using TCP . _*haproxy.cfg*__* *_ listen sftp-server bind :2121 *mode tcp* maxconn 2000 balance roundrobin option tcplog option tcp-check server ftp01 172.21.10.100:22

Re: HaProxy for SFTP load balancing

2016-10-06 Thread Igor Cicimov
> But for ex: > when the second node is down. it is not passing files to only first node. instead, one time to first node and one time to second node. That means alternatively my second request is getting failures. how to fix this. please help me asap. > > You need option redispatch > haprox

Re: HaProxy for SFTP load balancing

2016-10-06 Thread Andrew Smalley
If you want a connect to port check you can use the below example listen sftp bind 192.168.100.100:8022 transparent mode http balance leastconn option forwardfor if-none stick on hdr(X-Forwarded-For,-1) stick on src stick-table type string len 64 size 10240k expire 30m

Re: HaProxy for SFTP load balancing

2016-10-06 Thread vi...@abinnovative.com
We gave, that doesn't works. Vijay On 06-10-2016 07:34 PM, Lukas Tribus wrote: Hi Vijay, enable health-checks, by adding the "check" keyword to both your server configuration lines. Lukas -- *Thanks* *Vijay*

Re: HaProxy for SFTP load balancing

2016-10-06 Thread Lukas Tribus
Hi Vijay, enable health-checks, by adding the "check" keyword to both your server configuration lines. Lukas

HaProxy for SFTP load balancing

2016-10-06 Thread vi...@abinnovative.com
Hi, Greetings, I am facing issue in HA for SFTP nodes with haproxy. I have 2 SFTP nodes and sending files through haproxy, It is always passing that to each node one by one. But for ex: when the second node is down. it is not passing files to only first node. instead, one time to