OpenSource For You

A word about Varnish

-

Varnish is a Web applicatio­n accelerato­r or ‘reverse proxy’. It’s installed in front of the Web server to handle HTTP requests. This way, it speeds up the site and improves the performanc­e significan­tly. In some cases, it can improve the performanc­e of a site by 300 to 1000 times.

It does this by caching the Web pages and when visitors come to the site, Varnish serves the cached pages rather than requesting the Web server for it. Thus the load on the Web server reduces. This method improves the site’s performanc­e and scalabilit­y. It can also act as a failsafe method if the Web server goes down because Varnish will continue to serve the cached pages in the absence of the Web server.

With that said, let’s begin by installing Varnish on a VPS, and then connect it to a single NGINX Web server. Then let’s add another NGINX Web ser server so that we can implement a failsafe mechanis mechanism. This will accomplish the performanc­e g goals that we stated. So let’s get started. Fo For the rest of the article, let’s assume that you are using the Centos 6.4 O OS. However, we have provided

in informatio­n wherever we for fw felt Ubuntu it was users necessary.

Newspapers in English

Newspapers from India