Create a Redis cluster
-
In the Control Panel, in the top menu, click Products and select Cloud Databases.
-
Click Create cluster.
-
Enter the cluster name.
-
Select a location. You cannot change the location after creation.
-
Select the DBMS — Redis.
-
Select a 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 creating a cluster, you can change the node configuration — scale the cluster.
Optional: Fault tolerance
To ensure cluster fault tolerance, add replicas — exact copies of the master node. To do this, specify the number of nodes in the cluster. The first node is the master node, and the rest are replicas. Replicas are read-only (SELECT).
For a multi-node cluster, the SLA applies — we guarantee 99.95% write availability and 99.99% read availability.
Optional: Logging
To access cluster logs, enable logging. Logging uses some of the cluster's computing resources.
-
Select the Collect technical cluster logs into logging service checkbox.
-
Select an existing log group or create a new one.
-
If you selected a new group, enter its name.
Network
A Redis cluster can be connected to:
-
to a private subnet — without internet access. You can attach a public floating IP address for internet access. A separate address is attached to each cluster node;
-
or a public subnet — where all addresses are accessible from the internet.
You can create a new subnet or add the cluster to an existing one.
Private subnet
Public subnet
-
To add a cluster to 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 creating the cluster.
1.2. Optional: to make cluster nodes accessible from the internet, in the Public access to cluster nodes section, select the checkbox of the node to which you want to attach a public floating IP address. The Public access to cluster nodes section is available if the private subnet meets the requirements. If the subnet does not meet the requirements, you can attach a public floating IP address after creating the cluster.
-
To create 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 creating the cluster.
2.2. Optional: change the subnet CIDR.
2.3. Optional: change the network where the subnet will be created — you can select an existing network or create a new one. You cannot change the network after the cluster is created.
Optional: Security
Select security groups to filter incoming and outgoing cluster traffic.
If the Security section 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 its consumption reaches the set limit.
-
If you selected Redis version 6, in the Maxmemory Policy field, select an eviction policy.
-
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 creating the cluster.
User password
-
Enter a user password or click Generate. The password must contain:
- from 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 Control Panel, but you can change it.