Re: Hi. I`m a new haproxy user

From: Willy Tarreau <w#1wt.eu>
Date: Sat, 17 Jan 2009 22:59:57 +0100


On Fri, Jan 16, 2009 at 03:21:50PM +0200, Martin Petrov wrote:
> Hi i have a haproxy + wackamole + spread and i need a cluster two apache machines.
> Haproxy work FINE, BUT after 1-2 hours haproxy maybe broken. On all clients haproxy show blank page. If restart haproxy and wackamole + spread all is fine.
>
> Is use this tutorial:
> Part1: http://howtoforge.com/setting-up-a-high-availability-load-balancer-with-haproxy-wackamole-spread-on-debian-etch
> Part2: http://howtoforge.com/setting-up-a-high-availability-load-balancer-with-haproxy-wackamole-spread-on-debian-etch-p2
>
>
> These is my conf files:
> /etc/spread/spread.conf
>
> Spread_Segment 82.137.108.255 {
> lb1.dhstudio.eu 82.137.108.6
> # 192.168.0.101
> }
>
> EventLogFile = /var/log/spread.log
>
> EventTimeStamp
>
>
> ----
> /etc/wackamole.conf
> Spread = 4803
> SpreadRetryInterval = 5s
> Group = wack1
> Control = /var/run/wackamole/wackamole.it
>
> Prefer None
>
> VirtualInterfaces {
> # eth0:82.137.108.3/24
>
> eth0:82.137.108.3/32
> }
>
> Arp-Cache = 60s
>
> Notify {
> eth0:82.137.108.1/32
> eth0:82.137.108.0/24
> arp-cache
> }
> balance {
> AcquisitionsPerRound = all
> interval = 4s
> }
> mature = 5s
> ----------------------
> /etc/haproxy/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 82.137.108.3:80
> mode http
> stats enable
> stats auth amri:amridikon1
> balance roundrobin
> cookie JSESSIONID prefix
> option httpclose
> option forwardfor
> option httpchk HEAD /check.txt HTTP/1.0
> server dhstudio 82.137.108.2:88 cookie A check
> server me_ns2 82.137.108.6:88 cookie B check
>
>
> Haproxy balancer 82.137.108.6:80
> Webserver1 82.137.108.2:88
> Webserver2 82.137.108.6:88
>
>
> Please Help me! Why haproxy show blank page on some clients.

I see nothing wrong in your configuration (please change your stats password as you've just posted it to a public mailing list).

You should check your logs, you'll find error codes and condition flags indicating what is happening. I'm sorry, but I don't know about wackamole nor spread, so I can't help for this part. Do you have the ability to test without either of these tools, or with these tools and without haproxy, in order to rule out any possible cause of trouble ?

Regards,
Willy Received on 2009/01/17 22:59

This archive was generated by hypermail 2.2.0 : 2009/01/17 23:15 CET