Create a Redis cluster
Control panel
Terraform
-
In the Control panel, on the top menu, click Products and select Cloud Databases.
-
Click Create Cluster.
-
Enter the name of the cluster.
-
Select a region.
-
Select a pool. Once created, the pool cannot be changed.
-
Select RDBMS — Redis.
-
Select a version of Redis. Once created, the version cannot be changed.
-
Select a configuration line and a configuration.
-
Optional: to configure cluster fault tolerance, specify the number of nodes in the cluster in the Fault Tolerance block. The first node is the master node, the rest are replicas. SLA for a multi-node cluster — we guarantee 99.95% write availability and 99.99% read availability.
-
Choose a preemptive policy.
-
Enter the user password or click Generate. The password must contain:
- 32 to 64 characters;
- Latin letters of different cases;
- figures;
- special characters.
-
Copy and save the user password — you need it to connect to the cluster. The password cannot be viewed in the control panel, but can be changed.
-
Select or create a subnet:
- private subnet — a subnet without access from the Internet. You can connect a static public IP address;
- or public subnet — all addresses on a public subnet are accessible from the Internet.
Addresses are assigned to each node in the cluster. Make sure that the number of addresses in the subnet is not less than the number of nodes in the cluster. If you plan to increase the number of replicas after the cluster is created, select a subnet that has a supply of free addresses. Once the cluster is created, the subnet cannot be changed.
You can restrict the list of addresses from which access to the database cluster will be allowed.
-
Optional: In a private subnet, you can connect a public IP address to a cluster node:
- If you selected an existing private subnet — check the Public access to cluster nodes checkbox and then the checkbox of the node to which you want to grant public access. The private subnet must meet the requirements;
- if you are creating a new private subnet — connect the public IP address after the cluster is created.
-
Check the price of the cluster.
-
Click Create Cluster. The cluster will be ready for operation when it enters
the ACTIVE
status.
Use the Create a Redis fixed configuration Redis cluster instructions in the Terraform documentation.