Amyas <amyas@...> writes: > > koexuka <koexuka <at> ...> writes: > > > > > Hello I use Haproxy v1.4.24 on CentOS 5.9, with TCP mode. > > (My configure is nbproc 6 to use multi processes) > > Willy will say you should probably not use more than 1 proc > > > I found a lots of 'Errors Req' on Haproxy status page. ( /haproxy?hastat ) > > This page shows on Frontend section, > > for example.. > > - Sessions > Total 563,092 > > - Errors > Req 11,469 > > Something like > echo "show errors" | socat unix-connect:/tmp/hap.sock stdio > \ > /dev/shm/myhapshowerrs.out 2> /dev/shm/myhapshowerrs.err > Here is a shell script that will save each new error into a separate > file, but will not save files with the same error over and over. > http://ur1.ca/ehdz7 > put that is cron and run it every minute or so, you will get all the > request and response errors detailed in each file. > > > So, I have a hypothesis 'errors req count' will increase > > when Haproxy received 'RST' packet on TCP connection from client...? > > > > Please give me any ideas. > > Thanks. > > RST/disconnects show in the log entry for each request/connection > like "SH" see logging section for details. > http://code.google.com/p/haproxy-docs/wiki/SessionState > >
Hi, thank you for your reply, Amyas. > Something like > echo "show errors" | socat unix-connect:/tmp/hap.sock stdio I tried this command echo "show errors" | socat unix-connect:/path/to/haproxy.sock stdio and I got this messages Total events captured on [01/Jul/2013:13:50:27.032] : 731 [01/Jul/2013:13:50:26.070] frontend front (#2): invalid request src (Client IP address), session #1490245, backend <NONE> (#-1), server <NONE> (#-1) HTTP internal state 26, buffer flags 0x00909002, event #730 request length 1400 bytes, error at position 77: 00000 GET /mypath/aabbcc.cgi?param=abcdefg1234567891234567890123456789076a9 00070+ 7c483aa9\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 00092+ \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 00109+ \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 00126+ \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 00143+ \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 .... continues '\x00' is Null ? Maybe, Haproxy is receiving invalid request that include \x00 string and Haproxy discard such requests. So 'Errors req' count is keep increasing on stats page. But I cant understand the line HTTP internal state 26, buffer flags 0x00909002, event #730 What does this mean? Thanks for your shell script, too. It's useful. Thanks. koexuka.

