cache/503
vitaly burshteyn
vburshteyn at gmail.com
Wed Jun 2 21:13:13 CEST 2010
So on this one the site comes up
13 SessionOpen c 4.58.0.2 23450 *:80
13 ReqStart c 4.58.0.2 23450 831017267
13 RxRequest c GET
13 RxURL c /
13 RxProtocol c HTTP/1.1
13 RxHeader c Host: varnish2.broadway.com
13 RxHeader c User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1;
en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064
Safari/532.5
13 RxHeader c Referer: http://varnish2.broadway.com/
13 RxHeader c Accept:
application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
13 RxHeader c Accept-Encoding: gzip,deflate,sdch
13 RxHeader c Accept-Language: en-US,en;q=0.8
13 RxHeader c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
13 RxHeader c Cookie: OAX=BDoAAktdupEAAym8;
__qca=P0-1578676227-1264519209511;
__utmz=105990736.1264519210.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
__utma=105990736.1647079563.1264519210.1269538667.1270578927.6;
__ngt_cli=9AD2EBDB8489C157C3867ADB; __utmz=7868
13 RxHeader c Cache-Control: max-stale=0
13 RxHeader c Connection: Keep-Alive
13 RxHeader c X-BlueCoat-Via: C92BD551DF341D76
13 VCL_call c recv lookup
13 VCL_call c hash hash
13 Hit c 831017141
13 VCL_call c hit deliver
13 Length c 9057
13 VCL_call c deliver deliver
13 TxProtocol c HTTP/1.1
13 TxStatus c 200
13 TxResponse c OK
13 TxHeader c Server: Apache/2.2.9 (Fedora)
13 TxHeader c Vary: User-Agent,Cookie,Accept-Encoding
13 TxHeader c Content-Encoding: gzip
13 TxHeader c Content-Type: text/html; charset=utf-8
13 TxHeader c Content-Length: 9057
13 TxHeader c Date: Wed, 02 Jun 2010 19:11:45 GMT
13 TxHeader c X-Varnish: 831017267 831017141
13 TxHeader c Age: 72
13 TxHeader c Via: 1.1 varnish
13 TxHeader c Connection: keep-alive
13 ReqEnd c 831017267 1275505905.109919071 1275505905.110054970
0.000252008 0.000067949 0.000067949
and this one is a 503
13 SessionOpen c 4.58.0.2 23716 *:80
13 ReqStart c 4.58.0.2 23716 831017268
13 RxRequest c GET
13 RxURL c /
13 RxProtocol c HTTP/1.1
13 RxHeader c Accept: */*
13 RxHeader c Accept-Language: en-us
13 RxHeader c UA-CPU: x86
13 RxHeader c Accept-Encoding: gzip, deflate
13 RxHeader c User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.2; WOW64; SV1; .NET CLR 2.0.50727)
13 RxHeader c Host: varnish2.broadway.com
13 RxHeader c Cookie: s_cc=true; s_sq=%5B%5BB%5D%5D
13 RxHeader c Cache-Control: max-stale=0
13 RxHeader c Connection: Keep-Alive
13 RxHeader c X-BlueCoat-Via: C92BD551DF341D76
13 VCL_call c recv lookup
13 VCL_call c hash hash
13 VCL_call c miss fetch
13 FetchError c no backend connection
13 VCL_call c error deliver
13 Length c 487
13 VCL_call c deliver deliver
13 TxProtocol c HTTP/1.1
13 TxStatus c 503
13 TxResponse c Service Unavailable
13 TxHeader c Server: Varnish
13 TxHeader c Retry-After: 0
13 TxHeader c Content-Type: text/html; charset=utf-8
13 TxHeader c Content-Length: 487
13 TxHeader c Date: Wed, 02 Jun 2010 19:12:16 GMT
13 TxHeader c X-Varnish: 831017268
13 TxHeader c Age: 0
13 TxHeader c Via: 1.1 varnish
13 TxHeader c Connection: close
13 ReqEnd c 831017268 1275505936.200603962 1275505936.203883886
0.000077009 0.003217936 0.000061989
On Wed, Jun 2, 2010 at 2:40 PM, Rob S <rtshilston at gmail.com> wrote:
> If you send the output of varnishlog from one working and one non-working
> browser, with the back end shutdown, then we might be able to spot the
> difference.
>
> Rob
>
> vitaly burshteyn wrote:
>
>> Hi folks,
>>
>> Just curious if you can point me in the right direction.
>>
>> I have 2.0.6 varnish running. So it seems as if the cache is working and
>> i am getting cache hits.
>>
>> When i shut down the back end i can still get to the cached pages.
>>
>> On the other hand when i try a new browser i keep getting 503 pages.
>>
>> Any ideas?
>>
>>
>>
>> backend default {
>> .host = "10.249.129.171";
>> .port = "80"; }
>>
>> sub vcl_recv {
>> unset req.http.cookie;
>>
>> if (req.url ~ "^/admin/"){
>> set req.url = regsub(req.url, "^/admin/", "/oops/"); }
>>
>> if (req.url ~ "/affiliates/visa-signature/") {
>> return(pass); }
>>
>> if (req.http.cookie) {
>> set req.http.Cookie = regsuball(req.http.Cookie, "__utm.=[^;]+(; )?",
>> "");
>> if (req.http.cookie ~ "^ *$") {
>> remove req.http.cookie; } }
>>
>> if (req.url ~ "^/r/\d+/") {
>> return(pass); }
>>
>> # Don't cache if specific HTTP headers exist
>> if (req.http.Expect) {
>> return(pass); }
>>
>> if (req.http.Authorization) {
>> return(pass); }
>> return(lookup);}
>>
>> sub vcl_deliver {
>> return (deliver);}
>>
>> sub vcl_fetch {
>> set obj.ttl = 120m;
>>
>> unset obj.http.set-cookie;
>> if (req.url ~ "^/$") {
>> set obj.ttl = 1800s;}
>>
>> # Don't cache error pages
>> if (obj.status == 503) {
>> return(pass); }
>>
>> if (obj.http.Vary == "Cookie") {
>> remove obj.http.Vary;
>> }
>> if (obj.http.Vary == "Cookie,Accept-Encoding") {
>> set obj.http.Vary = "Accept-Encoding"; }
>>
>> # Anti-dogpiling feature - serve a stale request until a new one
>> # can be fetched, for up to 30s
>>
>> if (!obj.cacheable) {
>> return(pass); }
>>
>> return(deliver);}
>>
>> sub vcl_hit {
>> remove obj.http.Set-Cookie;}
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> varnish-misc mailing list
>> varnish-misc at varnish-cache.org
>> http://lists.varnish-cache.org/mailman/listinfo/varnish-misc
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.varnish-cache.org/pipermail/varnish-misc/attachments/20100602/aa8bafe0/attachment.html>
More information about the varnish-misc
mailing list