Blog

Archive for February, 2014

Varnish Cache Commands

How to reload Varnish config while varnish running.

# varnishadm
200
—————————–
Varnish Cache CLI 1.0
—————————–
-sfile,-smalloc,-hcritbit

Type ‘help’ for command list.
Type ‘quit’ to close CLI session.

vcl.load newconfig /etc/varnish/default.vcl
vcl.use newconfig
quit
500
Closing CLI connection

# top IP addresses
varnishtop -i TxHeader -I ‘^X-Forwarded-For:’
# which pages the IP address 103.4.122.20 is hitting
varnishncsa |grep 103.4.122.20 |awk ‘{print $7}’
# IP addresses hitting the /client-perf URL
varnishlog -m ‘RxURL:/client-perf’ |grep ‘X-Forwarded-For’
# IP addresses hitting the /client-perf URL
varnishlog -m ‘RxURL:/client-perf’ |grep ‘X-Forwarded-For’

varnishlog -O -i TxURL -i SessionOpen -i Hash

Posted in: Blog

Leave a Comment (0) →