Search
Varnish Cloud

DigitalOcean


Deploying Varnish Software instance

Subscription and configuration

Find our product in the [Digital Ocean marketplace[(https://marketplace.digitalocean.com/apps/varnish-cache) and click “Create Varnish Cache droplet”.

Launch instance

Login to your OCI account and you’ll see a screen where you can click “Launch instance”.

Create droplets

On the Create droplets screen, configure the following before clicking “Create droplets”.

  • Region
  • Droplet type and size
  • SSH key
  • How many droplets to start
  • Hostname
  • Project to start it in

Droplet details

If your server is up and running, you’ll see the a screen with detailed info about your server. The important thing is the Public IP address and username.

Instance is up and running

Welcome page

The instance is configured so that Varnish answers on port 80 and 443. If you access the instance IP address with a browser, you’ll see a welcome page. This requires that you have the ports open.

Logging into the server

The default username for the instance is opc. Using the SSH key you chose when creating the instance, you can login to the server with this command:

ssh -i /PATH/TO/SSHKEY root@IPADDRESS

For Windows users, click here.

Parameter tuning

The default settings of your Varnish instance suit most Varnish users, but we advise you to have a look and update the configuration according to your needs.

Our documentation site has a reference section with available runtime options. This will help you to properly configure the Varnish process.

To look at system parameters, run this command:

sudo systemctl cat varnish.service

To change runtime options, input the following command on your Varnish instance:

sudo systemctl edit varnish.service

Edit, as needed, and save the file. Now restart Varnish by running the following command:

sudo systemctl restart varnish.service

Configure your instance

For info on how to configure Varnish Enterprise, we recommend starting here.