Varnish

Varnish is a webcache & http accelerator. Varnish will either serve cached content, or retireve content from the server, and cache it. Varnish will reduce I/O pressure from webservers.

Emerge
Install

Configuration
Configuration is controlled by /etc/varnish/default.vcl

Any traffic pointed at port 8080 will be through varnish.

OpenRC
To start varnish immediately:

To start varnish at boot:

systemd
To start varnish on boot:

To start varnish immediately:

Verification
To verify that your traffic is going through varnish.