On Mon, 19 Jan 2009, [email protected] wrote:

This isn't the right list, but I would check if you have something
running on port 80 on your machines when you try to start haproxy.

once you check this, and check that the IP addresses that you are listening to actually exist on the system, one thing to consider is to set the sysctl value net.ipv4.ip_nonlocal_bind=1

this allows you to start a process listening to the socket even if the IP address doesn't exist on the box.

I use this so that I can start the proxies on my firewalls even when they aren't active. doing so avoids the proxy start-up time when a failover happens (the failover just moves the IP address and everything is already running)

the drawback is that you can't have heartbeat monitor the health of your proxy as easily, and becouse it eliminates an error message it can hide other misconfigurations.

David Lang

Brandon

Dejan Muhamedagic wrote:
Hi,

You need to find a more appropriate forum: heartbeat isn't
haproxy.

Thanks,

Dejan

On Fri, Jan 16, 2009 at 07:23:13PM +0530, kiran sarvabhotla wrote:

Hi all,

I tried to configure a 2 node cluster (courtesy
http://www.howtoforge.com/high-availability-load-balancer-haproxy-heartbeat-fedora8)...Heartbeatis
working fine.I checked it as per the instructions. It is not showing
shared ip of other lb when one is alive and heartbeat service is starting
well. But the problem is when i start ha proxy service. It is showing the
following error.

Starting haproxy: [ALERT] 015/191034 (15631) : Starting proxy webfarm:
cannot bind socket...on both load balancers

Details:
Webserver ip's xxx.xx.x.4 and xxx.xx.x.5
Load balancer Ip's xxx.xx.x.3 and xxx.xx.x.9
shared ip xxx.xx.x.10

My haproxy.cfg

global
        log 127.0.0.1   local0
        log 127.0.0.1   local1 notice
        #log loghost    local0 info
        maxconn 4096
        #debug
        #quiet
        user haproxy
        group haproxy

defaults
        log     global
        mode    http
        option  httplog
        option  dontlognull
        retries 3
        redispatch
        maxconn 2000
        contimeout      5000
        clitimeout      50000
        srvtimeout      50000

listen webfarm xxx.xx.x.10:80
       mode http
       balance roundrobin
       option httpclose
       option forwardfor
       cookie SERVERID insert indirect
       option httpchk HEAD /check.txt HTTP/1.0
       server webA xxx.xx.x.4:80 cookie A check
       server webB xxx.xx.x.5:80 cookie B check



So I have checked each file thoroughly and I followed the instructions
neatly. How can start haproxy in my system??? with out any error.

regards
kiran
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to