How to Configure a Redis Clustering in 60 Seconds?

How to Configure a Redis Clustering in 60 Seconds?

Redis is an advanced open-source key-value cache and data store with improved durability. Keys can hold various data types, such as strings, hashes, lists, sets, sorted sets, bitmaps, and hyperlog logs, often considered data structure servers. All these data elements can be processed with atomic operations, like appending a string, moving an element to a list, incrementing a value in a hash, getting the highest-ranked element in a sorted set, etc.

Another key feature of Redis is its excellent performance. This is accomplished by manipulating an in-memory data set. To preserve such databases, make occasional backups to disk or append each command to a log. You can turn off this persistence optionally for a feature-rich networked in-memory cache.

Redis Cluster

Redis Cluster is a way to manage multiple Redis databases in a distributed and fault-tolerant manner. A Redis Cluster package provides a topology of at least three servers to ensure read load balancing and automatic recovery in case of primary node failure. It is widely used for data storage, caching, message brokering, and other tasks. In the event of a primary node failure, secondary nodes will automatically recover to ensure high performance and availability.

Redis Cluster Configuration

Step 1. Login into the Accu Web Cloud dashboard and click “New Environment.”

Redis Cluster Configuration

Step 2. In the installation frame, provide the following information:

  • Database: Select the Redis database and its version as per your requirement.
  • Nodes Count: Set the total number of Redis nodes in the cluster. The minimum is 6 (3 Primary and 3 Secondary nodes), and the maximum is 12 (6 Primary and 6 Secondary).
  • Enable Horizontal Auto-Scaling: This option adds scaling triggers for automatic horizontal scaling. The cluster will automatically perform sharding and rebalancing after adding or removing Primary nodes.
  • Enable External IP Addresses for Cluster Nodes: Assign public IP addresses to each node and configure the cluster to work via public IP only.
  • Environment Name: Enter a name for the environment.

Installation frame

Once you’ve entered the required data, click the “Create” button.

The deployment process will begin. Wait for it to finish. After the deployment is completed successfully, a pop-up will appear indicating success.

Deployment process will begin.

Congratulations, the Redis Cluster is now ready to use!

Automatic Installation and Configuration of Redis Cluster

The Redis Auto-Clustering option in the topology wizard allows automatic installation and configuration. Here are the detailed steps to install and configure Redis Cluster using the Redis Auto-Clustering option:

Step 1. Login into the AccuWeb Cloud dashboard and click on Marketplace.


Step 2. Look for the Redis Cluster option and click on Install.

Redis Cluster

Step 3. You will come across the installation frame, where you can input the number of nodes, choose whether to enable Horizontal Auto-Scaling, assign External IP Addresses to cluster nodes, provide a name for the environment, and Display Name.

Cluster Nodes

Step 4. Click Install when ready.

After the deployment, a success pop-up containing the Redis Cluster admin panel credentials will appear. Additionally, this same information will be sent to your email.

Redius Cluster Application

How to access Redis Cluster?

Access Redis Cluster using the admin panel

Once the cluster is ready, you can connect to the admin panel. From there, you can access cluster details and make necessary configurations and adjustments.

Redis Cluster using the admin panel

Access Redis Cluster using SSH connection (Web SSH)

You also have the option to establish an SSH connection (such as Web SSH) for making required changes. For instance, you can use the redis-cli tool and the password in the email to connect to the cluster and ensure its proper functionality.

  • Open the terminal and enter: redis-cli
  • Authenticate with the provided password: auth {passw0rd}
  • To confirm that the cluster is working correctly, enter cluster nodes

SSH Connection

This information is accessible from any cluster node, whether a Primary or Secondary node. The output will display the cluster nodes’ count, IDs, addresses, roles, and shards (hash slots) allocation for each node.


Following these steps, you can set up Redis Cluster and manage multiple databases in a distributed and fault-tolerant manner. It ensures high availability and performance through primary and secondary node setups. You can use the admin panel for configuration and access the Redis cluster. Alternatively, you can connect via SSH using the redis-cli tool and the provided password for real-time adjustments.