<div dir="ltr">Hello,<br>We started to implement varnish @ our infrastructure as a reverse proxy in front of Sharepoint, and it's doing good.<br>but there's a strange problem, if i requested varnish for the first time it works fine, but after, say 2 mins, if i hit the page again or refresh it it takes too long to respond and throw 503 error.<br>
it works the the default configurations, changes only on backend host.<br>server details:<br>host: CentOS release 5.5 (Final) x64.<br>varnish: varnish-2.0.6<br><br>
here's varnishlog:<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963716 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963719 1.0<br> 13 SessionOpen c 10.131.36.170 52969 :80<br>
13 ReqStart c 10.131.36.170 52969 374027480<br> 13 RxRequest c GET<br> 13 RxURL c /default.aspx<br> 13 RxProtocol c HTTP/1.1<br> 13 RxHeader c Host: xx.xx.xx.xx<br>
13 RxHeader c User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.15) Gecko/2009102704 Fedora/3.0.15-1.fc10 Firefox/3.0.15<br> 13 RxHeader c Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br>
13 RxHeader c Accept-Language: en-us,en;q=0.5<br> 13 RxHeader c Accept-Encoding: gzip,deflate<br> 13 RxHeader c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7<br> 13 RxHeader c Keep-Alive: 300<br>
13 RxHeader c Connection: keep-alive<br> 13 RxHeader c Cookie: SESS253f3165f282ca21e0aff96094b2f186=4om57skb5bthlv12hno77nefg3; SESS3c5368fdadd84553468b7aecbb6b8c56=m9okd8i89jeq777sn3c363cge7; ISAWPLB{30E7D663-ACFC-44A1-A8C4-C17514BA8234}={20C55D85-138B-4814-9748-CEA17E9D6759}<br>
13 VCL_call c recv<br> 13 VCL_return c pass<br> 13 VCL_call c pass<br> 13 VCL_return c pass<br> 13 Backend c 22 default default<br> 22 TxRequest - GET<br> 22 TxURL - /default.aspx<br>
22 TxProtocol - HTTP/1.1<br> 22 TxHeader - Host: xx.xx.xx.xx<br> 22 TxHeader - User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.15) Gecko/2009102704 Fedora/3.0.15-1.fc10 Firefox/3.0.15<br>
22 TxHeader - Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br> 22 TxHeader - Accept-Language: en-us,en;q=0.5<br> 22 TxHeader - Accept-Encoding: gzip,deflate<br> 22 TxHeader - Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7<br>
22 TxHeader - Cookie: SESS253f3165f282ca21e0aff96094b2f186=4om57skb5bthlv12hno77nefg3; SESS3c5368fdadd84553468b7aecbb6b8c56=m9okd8i89jeq777sn3c363cge7; ISAWPLB{30E7D663-ACFC-44A1-A8C4-C17514BA8234}={20C55D85-138B-4814-9748-CEA17E9D6759}<br>
22 TxHeader - X-Varnish: 374027480<br> 22 TxHeader - X-Forwarded-For: 10.131.36.170<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963722 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963725 1.0<br>
0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963728 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963731 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963734 1.0<br>
0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963737 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963740 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963743 1.0<br>
0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963746 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963749 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963752 1.0<br>
0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963755 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963758 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963761 1.0<br>
0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963764 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963767 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963770 1.0<br>
0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963773 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963776 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963779 1.0<br>
13 FetchError c http read error: 11<br> 22 BackendClose - default<br> 13 VCL_call c error<br> 13 VCL_return c deliver<br> 13 Length c 471<br> 13 VCL_call c deliver<br> 13 VCL_return c deliver<br>
13 TxProtocol c HTTP/1.1<br> 13 TxStatus c 503<br> 13 TxResponse c Service Unavailable<br> 13 TxHeader c Server: Varnish<br> 13 TxHeader c Retry-After: 0<br> 13 TxHeader c Content-Type: text/html; charset=utf-8<br>
13 TxHeader c Content-Length: 471<br> 13 TxHeader c Date: Sat, 24 Jul 2010 09:29:40 GMT<br> 13 TxHeader c X-Varnish: 374027480<br> 13 TxHeader c Age: 60<br> 13 TxHeader c Via: 1.1 varnish<br>
13 TxHeader c Connection: close<br> 13 ReqEnd c 374027480 1279963720.108640909 1279963780.108922005 0.000058889 60.000254154 0.000026941<br> 13 SessionClose c error<br> 13 StatSess c 10.131.36.170 52969 60 1 1 0 1 0 235 471<br>
0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963782 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963785 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963788 1.0<br>
0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963791 1.0<br> 0 CLI - Rd ping<br> 0 CLI - Wr 0 200 PONG 1279963794 1.0<br><br>varnishstats:<br><br> 69 0.00 0.01 Client connections accepted<br>
605 0.00 0.10 Client requests received<br> 40 0.00 0.01 Backend conn. success<br> 565 0.00 0.09 Backend conn. reuses<br> 16 0.00 0.00 Backend conn. was closed<br>
582 0.00 0.10 Backend conn. recycles<br> 550 0.00 0.09 Fetch with Length<br> 28 0.00 0.00 Fetch chunked<br> 7 . . N struct sess_mem<br>
1 . . N struct sess<br> 0 . . N struct object<br> 8 . . N struct objecthead<br> 1 . . N struct smf<br>
1 . . N large free smf<br> 1 . . N struct vbe_conn<br> 6 . . N struct bereq<br> 10 . . N worker threads<br>
10 0.00 0.00 N worker threads created<br> 1 . . N backends<br> 125 0.00 0.02 Objects sent with write<br> 69 0.00 0.01 Total Sessions<br>
605 0.00 0.10 Total Requests<br> 605 0.00 0.10 Total pass<br> 594 0.00 0.10 Total fetch<br><br><br><br><br>
</div>