Re:Re: Re: haproxy with many high Send-Q state

2017-11-28 Thread


Hi Lukas. I am confused about haproxy logging. Haproxy configuration manual 
says "An optional level can be specified to filter outgoing messages. By 
default, all messages are sent". I leave option level as default (log 127.0.0.1 
local0),  so all message should be sent to syslog. But I can only see  logs 
like "bingo nodes/s35 1/0/1117108 78387 -- 5168/5168/5168/207/0 0/0".


What can I do to get more information? Adding option log-separate-errors to my 
haproxy configuration will be helpful in this case? 









At 2017-11-23 19:23:08, "Lukas Tribus"  wrote:
>Hello,
>
>
>2017-11-23 11:57 GMT+01:00 张伟 <18618373...@163.com>:
>>
>>
>> Hi Lukas. Thank you for your reply.
>> I use haproxy as tcp load balancer. There are many client logs saying 
>> responses reach client more than 10 seconds after sending request. Is this 
>> just caused by network?  I add some more info below. Thank you.
>
>
>Please CC the mailing list.
>
>If the Send-Q is way higher now than it was before, it could indicate
>network problems. However you will always have non-null send-q unless
>all your clients are in the same datacenter.
>
>
>What you have to do is to look at one specific slow client and review
>the complete logs. Termination flags or netstat output is not helpful
>in this case.
>
>
>Regards,
>Lukas


haproxy with many high Send-Q state

2017-11-23 Thread
Hi. I encounter a problem when using haproxy. Can you give me some advice?


Here is the problem:
There are many connections with high send-q state. 457/(8701/2) is almost 10%. 
This only happens between haproxy and clients. 
ubuntu@ip-172-31-19-218:/var/log$ sudo netstat -apn|grep haproxy|awk '{if($3>0) 
print $0}'|wc -l; sudo netstat -apn|grep haproxy|wc -l
457
8701










 My haproxy config:

ubuntu@ip-172-31-19-218:/var/log$ cat /etc/haproxy/haproxy.cfg

global

daemon

maxconn 20

log 127.0.0.1 local0




defaults

maxconn 20

timeout connect 5000

timeout client  30

timeout server 30




listen bingo

bind *:8235

mode tcp

option tcplog

log global

balance roundrobin

default_backend nodes







backend nodes

server s11 172.31.20.23:8237

...