My Blog

Varnish on Cloud

1-click AWS Deployment    1-click Azure Deployment

Overview

Varnish is an open source “web accelerator” which you can use to speed up your website.
It can cache certain static elements, such as images or javascript but you can also use it for other purposes such as Load balancing or some additional security. A speedy website is key to a great user experience.

Varnish is an HTTP accelerator designed for content-heavy dynamic web sites as well as heavily consumed APIs. In contrast to other web accelerators, such as Squid, which began life as a client-side cache, or Apache and nginx, which are primarily origin servers, Varnish was designed as an HTTP accelerator. Varnish is focused exclusively on HTTP, unlike other proxy servers that often support FTP, SMTP and other network protocols.

Varnish is used by high-profile, high-traffic websites including Wikipedia, online newspaper sites such as The New York Times, The Guardian, The Hindu, Corriere della Sera, social media and content sites such as Facebook, Twitter, Vimeo and Tumblr. Of the Top 10K sites in the web, around a tenth use the software.

Varnish is a registered trademark of Varnish Software AB and its affiliates.
Varnish is owned by Varnish Software(www.varnish-software.com/) and they own all related trademarks and IP rights for this software.

Varnish on cloud runs on Amazon Web Services (AWS)  and Azure and  ensures that your websites load faster.

Cognosys provides hardened images of Varnish on all public cloud ( AWS marketplace and Azure ).

Secured Varnish on Ubuntu 14.04 LTS Community

Secured Varnish on CentOs 7.3 Community 

Features

Major Features of Varnish 

1.Design-One of the main features of Varnish is its design. Varnish is a modern program, designed and written for modern operating systems.

2.VCL- Another main feature of Varnish is its configuration language. VCL is a  domain specific language. Varnish compiles the configuration into binary code and runs it. VCL can be loaded and replaced on the fly.

3.Load balancing and back end health polling-  As it’s quite common to use more than one origin server to feed varnish, it has a built in load balancer. This consists of two parts:

  • The health polling system, which maintains a list of back ends able to receive traffic.
  • The director, which directs the request to the right back end.

4.Edge Side Includes (ESI) – ESI allows you to split up your web page into components cache them individually. If you’re going to use Varnish to accelerate a dynamic web site with a lot of personalized content ESI is the key to success, more or less.

5.The web management administration interface- If you’re managing a whole cluster of varnish servers you might find the  Varnish Administration Console useful. It is only available for customers with a Varnish Enterprise Subscription.
6.The management port- A running Varnish cache can be managed with a management port. You can just telnet in and upload a new configuration, change settings etc. See Management port for a general description on how this works.


Azure

Installation Instructions For Ubuntu

Note : How to find PublicDNS in Azure

Step 1) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to Ubuntu instance on Azure Cloud

1) Download Putty.

2) Connect to virtual machine using following SSH credentials:

  • Hostname: PublicDNS  / IP of machine
  • Port : 22

Username: Your chosen username when you created the machine ( For example:  Azureuser)
Password : Your Chosen Password when you created the machine ( How to reset the password if you do not remember)

Step 2)  Other Information:

1.Version: Varnish 4

2.Default ports:
1)Linux Machines: SSH Port – 22
2)Http: 80

Configure custom inbound and outbound rules using this link

3. To access Webmin interface for management please follow this link

Installation Instructions For Centos

Note : How to find PublicDNS in Azure

Step 1) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to Centos instance on Azure Cloud

1) Download Putty.

2) Connect to virtual machine using following SSH credentials:

  • Hostname: PublicDNS  / IP of machine
  • Port : 22

Username: Your chosen username when you created the machine ( For example:  Azureuser)
Password : Your Chosen Password when you created the machine ( How to reset the password if you do not remember)

 

Step 2) Other Information:

1.Version :Varnish 4
2.Default ports:
1)Linux Machines: SSH Port – 22
2)Http: 80
Configure custom inbound and outbound rules using this link

3. To access Webmin interface for management please follow this link

Videos

Secured Varnish on Ubuntu 14.04 LTS Community

Secured Varnish on CentOs 7.3 Community 

Install Varnish and run

https://www.youtube.com/watch?v=wwZud6X5iNA

Varnish on Cloud

Related Posts