Navigate to the Alibaba marketplace and click on “Varnish Cache 6 (Ubuntu)”. On the next page, click “Choose your plan”.
Now you’ll be prompted to log into your OCI account. Then you’ll be presented with a screen where you can click “Launch instance”.
On the Elastic Compute Service (ECS) screen, configure the following:
Click “Next”. On the next page, configure the following:
Click “Preview”. Then review your settings and click “Create instance”.
If your server is, indeed, up and running, you will see a screen with detailed info about your server. The most important thing to look for is the Public IP address.
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 you to have the ports open.
The default username for the instance is opc. With the SSH key you used when creating the instance, you can log into the server with this command:
ssh -i /PATH/TO/SSHKEY root@IPADDRESS
Windows users click here.
The default settings for 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 the available runtime options. This will help you properly configure your Varnish process.
To check out the system parameters, run this command:
sudo systemctl cat varnish.service
To change the runtime options, input the following command on your Varnish instance:
sudo systemctl edit varnish.service
Edit, as needed, and save the file.
Lastly, restart Varnish by running the following command:
sudo systemctl restart varnish.service
For info on how to configure Varnish Enterprise, we recommend that you start here.