开发者

on varnish, how can i see how many requests to each server are sent?

I'd like to see how开发者_如何学运维 many requests varnish is sending to each backend via round-robin director. i haven't found out how so far. thanks for any idea


You can't get this numbers from varnish directly, but if youre using round-robin director I'd guess the traffic to each backend will be nearly the 1/n of total ammount where n is number of backends. This is true only if backends all healthy and not skipped from round.

You can still get theese stattistics from backend access log or server-status page or similar, depending on http daemon used.


I'm a bit rusty on the varnish log file, but you should be able to use varnishlog and sample it.

http://linux.die.net/man/1/varnishlog

The sample, should give you an idea of the distribution.

Another option, would be to do a netstat and see how many connections are open to the background server.

-daniel

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜