Create a Redis cluster
-
In the Dashboard, on the top menu click Products and select Managed Databases.
-
Click Create cluster.
-
Enter the cluster name.
-
Select a location. You cannot change the location after creation.
-
Select the DBMS — Redis.
-
Select the Redis version. You cannot change the version after creation.
-
Fill in the blocks:
- Node configuration;
- optional: Fault tolerance;
- optional: Logging;
- Network;
- optional: Security;
- optional: Eviction policy;
- User password.
-
Check the cluster price.
-
Click Create cluster.
Node configuration
-
Select a configuration line.
-
Select a configuration.
After cluster creation, you can change the node configuration — scale the cluster.
Optional: Fault tolerance
To ensure cluster fault tolerance, add replicas — full copies of the master node. To do this, specify the number of nodes in the cluster. The first node is the master node, the rest are replicas. Replicas are available for read-only operations (SELECT).
For a multi-node cluster, the SLA applies — we guarantee 99.95% write availability and 99.99% read availability.
Optional: Logging
To access the cluster logs, enable logging. Logging consumes some of the cluster's computing resources.
-
Select the Collect technical cluster logs to the logging service checkbox.
-
Select an existing log group or create a new one.
-
If you selected a new group, enter its name.
Network
You can add a Redis cluster to a new or existing subnet. A subnet can be:
-
private — no access from the internet. You can attach a public IP address for internet access. A separate public IP address is attached to each cluster node. To attach a public IP address, the private subnet must meet the requirements;
-
public — where all addresses are accessible from the internet.
Private subnet
Public subnet
-
To add an existing private subnet:
1.1. In the Subnet field, select an existing subnet. The number of addresses in the selected subnet must be at least the number of nodes in the cluster. You cannot change the subnet after cluster creation.
1.2. Optional: to make cluster nodes accessible from the internet, select the Public access to cluster nodes checkbox, and then the checkbox for the node you want to provide public access to. The private subnet must meet the requirements. If the subnet does not meet the requirements, you can attach a public IP address after cluster creation.
-
To add a new private subnet:
2.1. In the Subnet field, select New private subnet. The number of addresses in the subnet must be at least the number of nodes in the cluster. You cannot change the subnet after cluster creation.
2.2. Optional: change the subnet CIDR.
2.3. Optional: change the network in which the subnet will be created — you can select an existing network or create a new one. You cannot change the network after cluster creation.
Optional: Security
Select security groups to filter incoming and outgoing cluster traffic.
If the Security block is missing, traffic filtering (port security) is disabled in the cluster network. If traffic filtering is disabled, all traffic will be allowed.
Optional: Eviction policy
In a Redis cluster, you can select an eviction policy — a rule according to which Redis evicts keys to free up memory when memory consumption reaches the set limit.
-
If you selected Redis version 6, select an eviction policy in the Maxmemory Policy field.
-
If you selected Redis version 8:
2.1. In the Maxmemory field, specify the parameter value. Available values are from 1% to 75%.
2.2. In the Maxmemory Policy field, select an eviction policy.
You can change the eviction policy after cluster creation.
User password
-
Enter the user password or click Generate. The password must contain:
- 32 to 64 characters;
- uppercase and lowercase Latin letters;
- digits;
- special characters.
-
Copy and save the user password — you will need it to connect to the cluster. You will not be able to view the password in the Dashboard, but you can change it.