varnish #4

  • By hloeung
  • Latest version (#4)
  • precise
  • Stable
  • Edge

Description

Varnish Cache is a state of the art web accelerator written with
performance and flexibility in mind. Varnish Cache stores web pages
in memory so web servers don't have to create the same web page over
and over again. Varnish serves pages much faster than any application
server; giving the website a significant speed up. Some of the
features include: * A modern design * VCL - a very flexible
configuration language * Load balancing with health checking of
backends * Partial support for ESI - Edge Side Includes * URL
rewriting * Graceful handling of "dead" backends


$ juju bootstrap

$ juju deploy cs:apache2

$ juju deploy local:precise/varnish

$ juju add-relation apache2:website varnish:website

$ juju expose varnish

$ juju add-unit apache2

$ juju add-unit varnish

Configuration

listen_port
(int) varnish listening port
80
storage_size
(string) size of storage, in bytes unless followed by [Kk], [Mm], [Gg], or [Tt] to specify units
256m
storage_type
(string) one of malloc, file, or persistent. see documentation for more information.
malloc
storage_file
(string) location of file or persistent storage. for file, can also be a directory where varnish may create files.
nfiles
(int) Maximum number of open files (for ulimit -n)
131072
memlock
(int) Maximum locked memory size (for ulimit -l)
82000