7

使用 varnish-cache,我正在运行varnishtop -c -i RxURL以显示来自缓存的客户端请求数。输出看起来有点像这样:

list length 40                                                                                                                                                    

   121.76 RxURL          /some/path/to/file
   105.17 RxURL          /some/other/file
    42.91 RxURL          /and/another
    14.61 RxURL          /yet/another
    14.59 RxURL          /etc
    13.63 RxURL          /etc/etc

数字121.76105.17代表什么?

首次发布时它们正在增加varnishtop,但随后趋于稳定,因此我倾向于相信每个特定时间范围内的代表点击数。是这样吗,时间表是什么?

这在 中没有解释man page。感谢您的任何帮助!

编辑:清漆版本是2.1

4

2 回答 2

16

varnishtop命令显示 60 秒内的滚动聚合计数。这意味着即使所有交通都停止,显示屏上的平均下降也需要 60 秒。

列表长度 40

列表中的项目总数,因为屏幕一次只能显示这么多。

121.76 RxURL /some/path/to/file

在过去 60 秒内收到约 121 个请求/some/path/to/file

其他一些有趣的监控统计数据:

# most frequent cookies
varnishtop -i RxHeader -I Cookie

# continually updated list of frequent URLs
varnishtop -i RxURL

# most frequent UA strings
varnishtop -i RxHeader -C -I ^User-Agent

# frequent charset (Accept-Charset can be replaced with any other HTTP header)
varnishtop -i RxHeader -C -I '^Accept-Charset'

# Requests resulting in 404's
varnishlog -b -m "RxStatus:404"
于 2013-03-21T13:57:45.230 回答
1

这是每 60 秒的平均请求数。手册确实说了 - 但在参数说明而不是工具的一般描述中:

-p period Specifies the number of seconds to measure over, the default is 60 seconds. The first number in the list is the average number of requests seen over this time period.

于 2012-11-07T07:38:56.250 回答