Hi,

>From some time now I see high number tcp close and timewait.

#v+
lb-01 ~ # free
             total       used       free     shared    buffers     cached
Mem:       4046308    1348228    2698080          0     363184     571832
-/+ buffers/cache:     413212    3633096
Swap:      2096440          0    2096440
#v-
#v+
lb-01 ~ # ss -s
Total: 1732 (kernel 1834)
TCP:   94808 (estab 574, closed 93166, orphaned 171, synrecv 0,
timewait 93163/0), ports 5048

Transport Total     IP        IPv6
*         1834      -         -
RAW       0         0         0
UDP       13        13        0
TCP       1642      1642      0
INET      1655      1655      0
FRAG      0         0         0
#v-

My sysctl looks like this:

http://pastebin.com/DPvDv4xu

Haproxy settings:

#v+
defaults
        log     global
        mode    http
        option  httplog
        option  dontlognull
        option  redispatch
        option  httpclose
        option  srvtcpka
        option  clitcpka
        option  forwardfor
        balance roundrobin
        retries 3
        maxconn 8192
        timeout client  30s
        timeout connect 30s
        timeout server  30s
#v-

Rest config it's just fronend's backend's with acl but no more options.

I'm wonder is it's possible to make that number of close/timewait
lower or is it normal ?

-- 
Łukasz Jagiełło
lukasz<at>jagiello<dot>org

Reply via email to