我在nginx上安装了varnish cache。
当我收到varnishtop时,我会收到:
25.56 CLI Rd help
25.56 CLI Wr 200 84 ban.url <regexp>
25.56 CLI Wr 200 0
4.53 CLI Rd ban obj.http.X-Varnish-Session == 66c0e5ad9d2a4b38c92035
2.17 CLI Rd ban obj.http.X-Varnish-Session == 569fe0eecdbe0c95cf38e2
1.52 CLI Rd ban.url (?:cizme-femei|cizme-femei)
1.47 CLI Rd ban obj.http.X-Varnish-Session == d8ecf769c08dbf3da26f60
1.47 CLI Rd ban obj.http.X-Varnish-Session == 89c15593dc05c5d33f2620
1.39 CLI Rd ban obj.http.X-Varnish-Session == 4baf38b66ed6c31e3999fc
1.37 CLI Rd ban obj.http.X-Varnish-Session == 57fef6f801287e9c53669c
1.33 CLI Rd ban obj.http.X-Varnish-Session == 50d693740b9351f17f3894
1.32 CLI Rd ban obj.http.X-Varnish-Session == 71828629f9e7fa5d156e8b
1.29 CLI Rd ban obj.http.X-Varnish-Session == f78bb62ce1668e037f32d1
1.20 CLI Rd ban obj.http.X-Varnish-Session == a44565de7954d969fa4d14
1.11 CLI Rd ban obj.http.X-Varnish-Session == 765aad49d3adc724568218
1.10 CLI Rd ban obj.http.X-Varnish-Session == 01831f7dc38e3a912be854
0.96 CLI Rd ban obj.http.X-Varnish-Session == 7d7e0380081ce812c01c05
0.92 CLI Rd ban obj.http.X-Varnish-Session == b7a4aaa9ce381fc631936d
0.91 CLI Rd ban obj.http.X-Varnish-Session == 6a14d688be3a68c5aec89b
0.90 CLI Rd ban obj.http.X-Varnish-Session == 569fe0eecdbe0c95cf38e2
0.83 CLI Rd ban obj.http.X-Varnish-Session == f62b9d5fac527948cec26a
0.75 CLI Rd ban obj.http.X-Varnish-Session == d278d298dcfd9dc895531a
0.75 CLI Rd ban obj.http.X-Varnish-Session == 04957dfe8a157986a6a17b
0.70 CLI Rd ban obj.http.X-Varnish-Session == dd72c7e2a56110608a897c
这是否意味着它正在运作?
非常感谢你。 吨答案 0 :(得分:1)
由于您在varnishtop
中看到输出,因此清漆确实正在运行。
您粘贴的日志条目都标记为CLI
,这是varnishadm
通过管理套接字发出的请求和响应。
如果您运行varnishtop
而没有按标记过滤,那么如果服务器正在接收HTTP流量,您应该会看到更多项目。
以下是您可能会看到的一些示例:
2807.14 VCL_return deliver
2744.29 TxProtocol HTTP/1.1
1843.43 TxHeader Via: 1.1 varnish
1757.00 TxResponse OK
1756.86 TxStatus 200
1690.57 RxRequest GET
您可以用来观看清漆的另一个命令是varnishstat
,它可以让您查看许多内部计数器,包括连接和请求率。