Create a Redis cluster
Control panel
Terraform
-
В control panels go to Cloud platform → Databases.
-
Click Create a cluster.
-
Enter the name of the cluster.
-
Select region.
-
Select pool.
-
Select a version of Redis. Once created, the version cannot be changed.
-
Select configuration line:
- Standard;
- HighFreq;
- Dedicated.
-
Optional: specify the number of replicas. Replicas increase the fault tolerance of the cluster.
-
Select crowding-out policy.
-
Enter the user's password or press Generate. The password must contain:
- 32 to 64 characters;
- Latin letters of different cases;
- figures;
- special characters.
-
Copy and save the user password — you will need it to cluster connections. The password cannot be viewed in the control panel, but you can modify.
-
Select the type of subnet to which the cluster will be connected:
- private subnet — a subnet without access from the Internet. You can connect a static public IP address;
- public subnet — all addresses on the public subnet are accessible from the Internet.
-
Select or create a subnet.
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 address list 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 have selected an existing private subnet, check the box. Public access to cluster nodesand then check the checkbox of the node to which you want to grant public access. The private subnet must correspond to demands;
- if you create a new private subnet — connect a public IP address after the cluster is created.
-
Click Create a database cluster. The cluster will be ready for operation when it moves to status
ACTIVE
.
Use the instructions Create a Redis cluster of fixed configuration in the Terraform documentation.