ICAP connections under heavy loads

From: Alexander Komyagin <komyagin_at_altell.ru>
Date: Mon, 27 Aug 2012 13:29:52 +0400

Hi! My setup is Squid 3.2.1 + C-ICAP Antivirus.

I noticed that in simulated production setup (e.g. 1200 http requests
per sec) there are dozens connections established from squid to c-icap
server, and even after the last client request timeouts, these
connections are still opened/opening.

tcp 0 0 127.0.0.1:1344 127.0.0.1:51352
ESTABLISHED
tcp 722 0 127.0.0.1:1344 127.0.0.1:51500
ESTABLISHED
tcp 0 0 127.0.0.1:51374 127.0.0.1:1344
ESTABLISHED
tcp 0 0 127.0.0.1:1344 127.0.0.1:51404
ESTABLISHED
tcp 0 0 127.0.0.1:51370 127.0.0.1:1344
ESTABLISHED
tcp 0 0 127.0.0.1:51375 127.0.0.1:1344
ESTABLISHED
tcp 722 0 127.0.0.1:1344 127.0.0.1:51454
ESTABLISHED
tcp 0 0 127.0.0.1:1344 127.0.0.1:51373
ESTABLISHED
tcp 722 0 127.0.0.1:1344 127.0.0.1:51427
ESTABLISHED
tcp 0 1 127.0.0.1:51677 127.0.0.1:1344
SYN_SENT
tcp 0 0 127.0.0.1:51211 127.0.0.1:1344
TIME_WAIT
tcp 0 0 127.0.0.1:51420 127.0.0.1:1344
ESTABLISHED
tcp 0 0 127.0.0.1:1344 127.0.0.1:51318
ESTABLISHED
tcp 0 0 127.0.0.1:51290 127.0.0.1:1344
ESTABLISHED

Is this the intended behavior?

Also there are a lot of "BUG: Orphaned connection" messages in my
cache.log under those conditions. I found out that they are caused by
Xaction destruction after client request timeout, getting
noteInitiatorAborted() before connection is established in the
corresponding ConnOpener job. I temporarily fixed that by notifying
ConnOpener (if any) in the Xaction::swanSong().

-- 
Best wishes,
Alexander Komyagin
Received on Mon Aug 27 2012 - 09:50:04 MDT

This archive was generated by hypermail 2.2.0 : Mon Aug 27 2012 - 12:00:11 MDT