This BOSH release deploys a Varnish HTTP Cache server.
Varnish is a web accelerator (caching reverse proxy) that reduces load on its backend and speeds up content delivery. This release was primarily designed to be integrated with Cloud Foundry by fronting the Gorouters. It packages the latest released version of the Varnish 6.0 LTS branch.
To deploy a Varnish instance using the provided example manifest, run the following command:
bosh -e <env> -d varnish deploy manifests/varnish.yml
A more advanced example can be found in manifests/varnish-with-haproxy.yml
:
bosh -e <env> -d varnish-haproxy-test deploy manifests/varnish-with-haproxy.yml
Here, Varnish is fronted by HAProxy for TLS termination and consistent hashing. It includes a custom drain script that combined with a some VCL logic and a health check in HAProxy ensures a graceful shutdown of the Varnish instances (no lost requests or error responses).
It is assumed that users of this release will create their own manifest customised to their environment.