Fwd: Miss and obj.hits

Piotr Teodorowski piotr.teodorowski at unity.pl
Thu Feb 6 04:57:17 CET 2014


Hi,

i have strange behaviour with few requests.
It looks, that response wasn't in cache, it was fetched and obj.hits
wasn't 0. Is it a bug? Should I upgrade Varnish to 3.X?


   15 SessionOpen  c 89.231.100.51 40774 XXX.XXX.XXX.97:80
   15 ReqStart     c 89.231.100.51 40774 783244377
   15 RxRequest    c GET
   15 RxURL        c /
   15 RxProtocol   c HTTP/1.1
   15 RxHeader     c TE: deflate,gzip;q=0.3
   15 RxHeader     c Connection: TE, close
   15 RxHeader     c Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
   15 RxHeader     c Host: www.example.com
   15 RxHeader     c Referer: http://monit24.pl/?cmd_id=1391237079.43060
   15 RxHeader     c User-Agent: www.monit24.pl-m24Bot/3.1-
   15 VCL_call     c recv
   15 VCL_acl      c NO_MATCH Unity
   15 VCL_acl      c NO_MATCH Unity
   15 VCL_acl      c NO_MATCH Unity
   15 VCL_return   c lookup
   15 VCL_call     c hash hash
   15 VCL_call     c miss fetch
   15 Backend      c 16 tsprod tsapp1
   15 TTL          c 783244377 RFC 120 1391237080 0 0 0 0
   15 VCL_call     c fetch pass
   15 ObjProtocol  c HTTP/1.1
   15 ObjStatus    c 200
   15 ObjResponse  c OK
   15 ObjHeader    c Date: Sat, 01 Feb 2014 06:44:40 GMT
   15 ObjHeader    c Server: LiteSpeed
   15 ObjHeader    c X-Powered-By: PHP/5.4.13
   15 ObjHeader    c Content-Type: text/html
   15 ObjHeader    c X-Host-Name: tsapp1
   15 VCL_call     c deliver deliver
   15 TxProtocol   c HTTP/1.1
   15 TxStatus     c 200
   15 TxResponse   c OK
   15 TxHeader     c Server: LiteSpeed
   15 TxHeader     c X-Powered-By: PHP/5.4.13
   15 TxHeader     c Content-Type: text/html
   15 TxHeader     c X-Host-Name: tsapp1
   15 TxHeader     c Content-Length: 0
   15 TxHeader     c Date: Sat, 01 Feb 2014 06:44:40 GMT
   15 TxHeader     c X-Varnish: 783244377
   15 TxHeader     c Age: 0
   15 TxHeader     c Via: 1.1 varnish
   15 TxHeader     c Connection: close
   15 TxHeader     c X-Cache: HIT
   15 TxHeader     c X-Cache-Hits: 1
   15 Length       c 0
   15 ReqEnd       c 783244377 1391237080.636201859 1391237080.811423540
0.000034094 0.175161123 0.000060558

sub vcl_deliver {
        if (obj.hits > 0) {
                set resp.http.X-Cache = "HIT";
                set resp.http.X-Cache-Hits = obj.hits;
        } else {
                set resp.http.X-Cache = "MISS";
        }
        if (resp.http.X-Mark) {
                unset resp.http.X-Mark;
                set resp.http.age = "0";
        }
        return(deliver);
}


varnishd -V
varnishd (varnish-2.1.5 SVN )
CentOS 6.3

Regards,
Pitor Teodorowski





More information about the varnish-misc mailing list