This tutorial walks you through the process of deploying a Redis cluster on Ubuntu Server. The instructions work on all clouds supported by Juju—even bare metal servers—but this tutorial includes specific instructions to deploy the cluster to AWS, Google Compute Platform or Azure.
You will be able to configure the exact scale that you require and deploy it into any region supported by each cloud.
What you’ll learn
- Deploy a Redis cluster
- Tweak the cluster’s settings to add authentication
- Test our deployment
What you’ll need
- Juju installed (install it by running
snap install juju --claasic
or by following the instructions on the Juju documentation) - (Optional) An Ubuntu SSO account (visit login.myasnchisdf.eu.org to create one)
- (Optional) Credential information for AWS, GCP or Azure (created when you create an account with your preferred cloud provider)
Looking for a fully hosted solution? Use Juju as a Service (JAAS)
JAAS is a hosted service provided by Canonical, the company behind Ubuntu. It’s a “Juju controller” for free. The Juju controller talks to the cloud provider programmatically to provision machines and manage software deployments. Once they’re online, the controller then installs the software that we care about: Redis. To use JAAS for this tutorial, create an account on jaas.ai and run ‘juju login jaas’ in a terminal.
How this tutorial is structured
The top of each step provides a command to be executed in the terminal window. Explanatory text then follows for people who want to know more.
To open a terminal window in Ubuntu, open the Terminal app or holding Ctrl
+ Alt
+ T
together.
Originally authored by Tim McNamara.