Re: Not able to start Haproxy

2011-08-11 Thread Willy Tarreau
Hi Manoj, On Thu, Aug 11, 2011 at 05:59:58PM +, Manoj Kumar wrote: > Hi All, > > We have installed HA-Proxy version 1.4.16 in our production and it was > working for 4 to 5 hours. Now when i start Haproxy i am not able to start it. > I am getting below error. Can someone help me? > > -bash

Re: Problem: host header keeps the IP of the HAProxy server

2011-08-11 Thread Ran S
I need some more help on this issue, I lost the working configuration since I added a Virtual IP to my setup: As you can see below my machines are 104 (currently running HAProxy) and 118. I changed the bind in the configuration, in order for HAProxy to bind to a virtual IP (I'm in the middle of tr

Re: Can't bind to Virtual IP

2011-08-11 Thread Ran S
Well Graeme, you are absolutely right, I have no idea why I stopped at one of the steps, thinking that I don't yet have the IP address so I'm doing something wrong. following the rest of the guide (particularly ip addr sh eth0 I guess) did the job. Thank you! I never thought such amazing help coul

Re: Can't bind to Virtual IP

2011-08-11 Thread Graeme Donaldson
On 11 August 2011 16:16, Ran S wrote: > Hello, > > I am trying to set up a binding to a Virtual IP in order to use master and > slave HAProxy load balancers. > I am following each of the two following guides: > > > http://www.highscalable.org/haproxy-and-keepalived-for-highly-performance-load-bal

Re: Can't bind to Virtual IP

2011-08-11 Thread Ben Timby
On Thu, Aug 11, 2011 at 10:16 AM, Ran S wrote: > But the majority of the guides are not relevant to my problem. as far as I > understand, in order for a frontend to use a different IP than the machine's > IP (in an internal network), all is needed is: Why do you think that? You can certainly bind

Can't bind to Virtual IP

2011-08-11 Thread Ran S
Hello, I am trying to set up a binding to a Virtual IP in order to use master and slave HAProxy load balancers. I am following each of the two following guides: http://www.highscalable.org/haproxy-and-keepalived-for-highly-performance-load-balancing-web-technique http://www.howtoforge.com/setting

Re: Problem: host header keeps the IP of the HAProxy server

2011-08-11 Thread Ran S
Ok got it! many thanks! just had to give the id as an integer instead of a name (118), and use srv_id 118 On Thu, Aug 11, 2011 at 1:45 PM, Ran S wrote: > Many thanks for your help! it seems that this is the correct way, but I get > a parsing error when checking the file in every possible syntax

Re: Problem: host header keeps the IP of the HAProxy server

2011-08-11 Thread Ran S
Many thanks for your help! it seems that this is the correct way, but I get a parsing error when checking the file in every possible syntax I could come up with frontend http-in bind 172.31.0.104:80 default_backend test_servers backend test_servers server 118 172.31.0.118:

Re: Problem: host header keeps the IP of the HAProxy server

2011-08-11 Thread Hervé COMMOWICK
reqrep if { srv_id } server's id can be forced with "id" keyword if needed Regards, Hervé. On Thu, 11 Aug 2011 13:22:36 +0300 Ran S wrote: > Well, I have no idea if this mailing list is active, as I have gotten > no response, but I'll give it another try. > > I managed to change the Host

Re: Problem: host header keeps the IP of the HAProxy server

2011-08-11 Thread Ran S
Well, I have no idea if this mailing list is active, as I have gotten no response, but I'll give it another try. I managed to change the Host header using ReqRep successfully. However, now I am in a state where one of the backends need this change, and the other one doesn't. How would I go about