2.6 kernel tuning for haproxy

From: Matthieu Huguet <matthieu_huguet#prizee.fr>
Date: Wed, 7 Nov 2007 14:41:57 +0100


Hello,  

In the documentation, there is an example of TCP tuning for 2.4 kernels.  

Are there a lot of differences for 2.6 kernels?

Does anyone have examples or guidelines for 2.6 and Haproxy ?  

We are using Haproxy on a 1000Mbps Ethernet link and have some troubles after 3000+ simultaneous connections: connection establishment is sometime very long (10 or 20 sec).

The load balancer and backends are not CPU/memory overloaded, so we are looking for problems on TCP configuration on the load balancer.  

The configuration is:  

net.ipv4.netfilter.ip_conntrack_max=65536  

net.ipv4.netfilter.ip_conntrack_tcp_timeout_fin_wait=30

net.ipv4.netfilter.ip_conntrack_tcp_timeout_time_wait=15  

net.ipv4.ip_local_port_range = 1024 60999

net.ipv4.tcp_fin_timeout = 30

net.ipv4.tcp_max_syn_backlog = 4096

net.ipv4.tcp_max_tw_buckets = 262144

net.ipv4.tcp_max_orphans = 262144

net.ipv4.tcp_keepalive_time = 300

net.ipv4.tcp_tw_recycle = 1

net.ipv4.tcp_timestamps = 0

net.ipv4.tcp_ecn = 0

net.ipv4.tcp_sack = 1

net.ipv4.tcp_dsack = 0  

net.core.rmem_max = 262143

net.core.rmem_default = 262143  

net.ipv4.tcp_rmem = 16384 65536 524288

net.ipv4.tcp_wmem = 16384 349520 699040      

Thanks  

Matthieu Huguet
Administrateur Systeme    

SARL Prizee.com
22 Allée Alan Turing
63000 CLERMONT FERRAND
FRANCE Tél : 04 73 44 10 30
Fax : 04 73 44 10 31
matthieu_huguet#prizee.fr
http://www.prizee.com <http://www.prizee.com/>  

image003.jpg
image004.jpg
Received on 2007/11/07 14:41

This archive was generated by hypermail 2.2.0 : 2007/11/07 15:15 CET