Statistics for each domain or url-pattern
kokoniimasu
kokoniimasu at gmail.com
Sun Feb 2 12:37:39 CET 2014
Hi, all.
I made a convenient script for cache tuning.
This script show to statistics (hit-rate, bps, rps, error-rate and other..
) for each domain or url-pattern.
Output sample:
date: 2014/02/02 12:10:00 interval: 5
Host | Mbps | rps | hit | time/req |
(H)time/req | (M)time/req | KB/req | 2xx/s | 3xx/s | 4xx/s
| 5xx/s
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
#alldata | 0.000938 | 1.800000 | 22.222222 | 0.000905 |
0.000103 | 0.001134 | 0.066732 | 1.400000 | 0.000000 |
0.400000 | 0.000000
example.net | 0.000038 | 1.000000 | 0.000000 | 0.001236 |
0.000000 | 0.001236 | 0.004883 | 1.000000 | 0.000000 |
0.000000 | 0.000000
example2.net | 0.000015 | 0.400000 | 0.000000 | 0.000878 |
0.000000 | 0.000878 | 0.004883 | 0.400000 | 0.000000 |
0.000000 | 0.000000
example3.net | 0.000885 | 0.400000 | 100.000000 | 0.000103 |
0.000103 | 0.000000 | 0.283203 | 0.000000 | 0.000000 |
0.400000 | 0.000000
--url-pattern
date: 2014/02/02 12:14:32 interval: 5
Host | Mbps | rps | hit |
time/req | (H)time/req | (M)time/req | KB/req | 2xx/s | 3xx/s
| 4xx/s | 5xx/s
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#alldata | 0.002698 | 1.600000 | 75.000000 |
0.000339 | 0.000101 | 0.001053 | 0.215820 | 0.400000 |
0.000000 | 1.200000 | 0.000000
[F1]example.net@^/img/ | 0.001788 | 0.800000 | 100.000000 |
0.000095 | 0.000095 | 0.000000 | 0.286133 | 0.000000 |
0.000000 | 0.800000 | 0.000000
[F2]example.net@^/css/ | 0.000894 | 0.400000 | 100.000000 |
0.000112 | 0.000112 | 0.000000 | 0.286133 | 0.000000 |
0.000000 | 0.400000 | 0.000000
[F3]example.net | 0.000015 | 0.400000 | 0.000000 |
0.001053 | 0.000000 | 0.001053 | 0.004883 | 0.400000 |
0.000000 | 0.000000 | 0.000000
https://github.com/xcir/varnishHostStat
I hope that this script is of help to you.
--
Shohei Tanaka(@xcir)
http://xcir.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20140202/e865dbec/attachment.html>
More information about the varnish-misc
mailing list