getting near real time request counts

Ross Brown ross at trademe.co.nz
Wed Mar 27 11:35:31 CET 2013


This may be what you need, even if not it may send you off in an interesting direction :)

http://jiboumans.wordpress.com/2013/02/27/realtime-stats-from-varnish/


-----Original Message-----
From: varnish-misc-bounces at varnish-cache.org [mailto:varnish-misc-bounces at varnish-cache.org] On Behalf Of Matthew M. Boedicker
Sent: Wednesday, 27 March 2013 7:17 p.m.
To: James Pearson
Cc: varnish-misc
Subject: Re: getting near real time request counts

> How close to realtime do you need?  What sorts of grouping are you wanting
> (e.g. the number of requests in the last minute)?  How long do you need to
> store this data?  Are you ok with losing precision as time passes, as happens
> in rrdtool and friends?  Are you concerned with all urls, or only certain ones,
> or only the top x%?  How important is it to you to not lose any data (is it ok
> to send stats around via UDP)?

I had the same concern about slowing down responses, so it would have
to be very lightweight. Maybe UDP as you said or putting something
into a queue.

I want to track total hit counts of image urls to track their
popularity. A single value per url is good enough and it can be pretty
far from real time.

Almost all of them are cached in varnish so varnish is the only thing
that knows that they have been requested.

_______________________________________________
varnish-misc mailing list
varnish-misc at varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc



More information about the varnish-misc mailing list