<div dir="ltr">Thanks Geoff.<div><br></div><div>It cleared my doubt. Means Both fields in 3 and 6 are same ( Agree with you that its not always).</div><div><br></div><div>"At the risk of repeating the answer that you didn't like, timestamps in Varnish 6 give you three values"</div><div><b>This line made my day...</b></div><div><b><br></b></div><div>One question now ..<br>what time should give to customer as a response time? Is it 2nd field(Total round trip time) or 3rd field(only response time after processed fetched content) ?</div><div><span style="color:rgb(80,0,80)"> Timestamp Resp: 1501601912.806787</span><font color="#cc0000"><b> 0.048125</b></font><span style="color:rgb(80,0,80)"> </span><b style="color:rgb(80,0,80)">0.000037</b> <br></div><div><br></div><div>Reason of asking this question is, Only first time request will go to origin. After that next all the request will be served from cache. Also generally we do not have control over other network (customer's network) when request goes to origin. As per this understanding, I should give 3rd field to customer as per response time. Please correct me if I am wrong.</div><div><br></div><div>Thanks again Geoff.</div><div><br></div><div>-Hardik</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 19 Mar 2019 at 18:06, Geoff Simmons <<a href="mailto:geoff@uplex.de">geoff@uplex.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 3/19/19 11:00, Hardik wrote:<br>
> <br>
> Please help with understanding.<br>
<br>
Well I tried with my previous answer, but you didn't seem to be<br>
satisfied with that. I'm not sure what else I can say.<br>
<br>
>> This line is creating confusion for me..<br>
>><br>
>> <a href="https://github.com/jib/libvmod-timers/blob/master/src/vmod_timers.c" rel="noreferrer" target="_blank">https://github.com/jib/libvmod-timers/blob/master/src/vmod_timers.c</a><br>
>> The sixth and last number (0.000025988) is the time from we start<br>
>> delivering the object until the request completes.<br>
<br>
That appears to be exactly the same as what we had in the old wiki,<br>
which as I recall was the only documentation we ever had for ReqEnd in<br>
Varnish 3:<br>
<br>
<a href="https://varnish-cache.org/trac/wiki/Varnishlog" rel="noreferrer" target="_blank">https://varnish-cache.org/trac/wiki/Varnishlog</a><br>
<br>
The statement about the sixth and last number has a bit of a grammatical<br>
error, but what it's saying is that it's the duration of delivery -- the<br>
time needed to send the client response.<br>
<br>
>>> I am not getting difference between varnish 3 and varnish 6.<br>
<br>
That's where you're losing me, and I suspect the problem is that you're<br>
looking for something Varnish 6 that corresponds exactly to what you<br>
were reading in Varnish 3.<br>
<br>
Generally speaking, they don't correspond. At the risk of repeating the<br>
answer that you didn't like, timestamps in Varnish 6 give you three values:<br>
<br>
* an absolute time (Unix epoch)<br>
* time elapsed since the beginning of request processing<br>
* time elapsed since the last timestamp<br>
<br>
However displeasing it may be, that's the way it is.<br>
<br>
In *practical* terms, you probably *are* getting a corresponding value<br>
in the third field of Timestamp:Resp, because of the fact that it<br>
follows Timestamp:Process.<br>
<br>
Again repeating the reference to<br>
<a href="https://varnish-cache.org/docs/trunk/reference/vsl.html#timestamps" rel="noreferrer" target="_blank">https://varnish-cache.org/docs/trunk/reference/vsl.html#timestamps</a>:<br>
<br>
Process<br>
Processing finished, ready to deliver the client response.<br>
Resp<br>
Delivery of response to the client finished.<br>
<br>
Since Timestamp:Resp follows Timestamp:Process, and the third field is<br>
the difference since the last timestamp, then the third field of<br>
Timestamp:Resp is the difference between "ready to deliver the client<br>
response" and "Delivery of response to the client finished". In other<br>
words, the duration of delivery.<br>
<br>
So if you're insisting on asking "is that field in Varnish 6 the same as<br>
the field in Varnish 3", then fine, they're essentially the same thing.<br>
<br>
The reason I'm reluctant to just say yes is that it's possible (although<br>
very uncommon) for some *other* timestamp to appear before<br>
Timestamp:Resp in the log. If that does happen (a rare case, if at all),<br>
then they're not the same.<br>
<br>
Hardik, I believe you'll be much better off if you come to terms with<br>
the fact that the timestamps in Varnish 3 and Varnish 6 just aren't the<br>
same. You're using Varnish 6 now, so go with the way it works.<br>
<br>
<br>
Trying my best,<br>
Geoff<br>
-- <br>
** * * UPLEX - Nils Goroll Systemoptimierung<br>
<br>
Scheffelstraße 32<br>
22301 Hamburg<br>
<br>
Tel +49 40 2880 5731<br>
Mob +49 176 636 90917<br>
Fax +49 40 42949753<br>
<br>
<a href="http://uplex.de" rel="noreferrer" target="_blank">http://uplex.de</a><br>
<br>
</blockquote></div>