From: James Satterfield <james#uberduper.com>
Date: Sat, 20 Sep 2008 15:20:44 -0700

I've run into some problems with haproxy in my production environment. We're getting a lot of these errors
kernel: Sep 20 14:18:38 localhost haproxy[81006]: Connect() failed for server corp-www/web1: local address already in use. We only get these errors on connections to the two web servers. We never see these errors on connections to our application hosts.

I've looked through the source and this appears to be triggered by connect() returning EADDRINUSE. This does look to be a freebsd problem and not an haproxy problem but I'm hoping to find someone on this list that's found a solution.

Platform is two freebsd 6.3 machines running pf/pfsync/carp/haproxy 1.2.17
I've attached my sanitized config.
The internal interface config for load balancer A em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500

	inet netmask 0xffffff00 broadcast
	ether 00:30:48:63:b2:70
	media: Ethernet autoselect (1000baseTX <full-duplex>)
	status: active
carp1: flags=49<UP,LOOPBACK,RUNNING> mtu 1500
	inet netmask 0xffffff00
	inet netmask 0xffffff00
	carp: MASTER vhid 11 advbase 1 advskew 0

The load balancer generally has about 1000 connections to the web servers in FIN_WAIT_2 and another ~500 in TIME_WAIT with application hosts 1 - 4.


Received on 2008/09/21 00:20

This archive was generated by hypermail 2.2.0 : 2008/09/21 00:30 CEST