<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-CA link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You are not waiting long enough for the backend. You need logic
to restart if the first request fails.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Use two directors, one “impatient” and one “patient”, with a
longer wait time for first byte. Restart if the first request to the fast
director fails, and use the slow, patient director for that one.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Stefan Caunter :: Senior Systems Administrator :: TOPS<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>e: scaunter@topscms.com  ::  m: (416) 561-4871<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>www.thestar.com www.topscms.com<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> varnish-misc-bounces@varnish-cache.org
[mailto:varnish-misc-bounces@varnish-cache.org] <b>On Behalf Of </b>Jerais
Al-Jeraisy<br>
<b>Sent:</b> July-24-10 6:12 AM<br>
<b>To:</b> varnish-misc@varnish-cache.org<br>
<b>Subject:</b> 503 error after idle session<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>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>
<o:p></o:p></p>

</div>

</div>

</body>

</html>