varnish web accelerator

Varnish web application accelerator homepage: https://www.varnish-cache.org

Install the Varnish YUM Repository

# rpm -Uvh http://repo.varnish-cache.org/redhat/varnish-3.0/el5/noarch/varnish-release-3.0-1.noarch.rpm

Install Varnish web accelerator

# yum install varnish

Enable Varnish web accelerator at startup

# chkconfig varnish on

Basic default.vcl

# vi /etc/varnish/default.vcl
1
2
3
4
5
6
7
8
9
10
# This is a basic VCL configuration file for varnish.  See the vcl(7)
# man page for details on VCL syntax and semantics.
#
# Default backend definition.  Set this to point to your content
# server.
#
backend default {
  .host = "127.0.0.1";
  .port = "80";
}

Start Varnish web accelerator

# service varnish start
You will now have a basic Varnish web accelerator running on port 8080

Top 5 Varnish commands

varnishstat
Provides all the info you need to spot cache misses and errors.
varnishhist
Provides a histogram view of cache hits/misses
varnishlog
Provides detailed information on requests.
varnishtop
The varnishtop utility reads varnishd shared memory logs and presents a continuously updated list of the most commonly occurring log entries.
varnishadm
Command-line varnish administration used to reload vcl and purge urls.

http://www.how2centos.com/install-varnish-centos-6/

Comments

Popular posts from this blog

Water Wonder Resort

Redirect apache request to another domain

Can't use proxy because no authentication schemes are fully configured.