Skip to main content

Create a Redis cluster

Last update:
  1. In the Dashboard, on the top menu click Products and select Managed Databases.

  2. Click Create cluster.

  3. Enter the cluster name.

  4. Select a location. You cannot change the location after creation.

  5. Select the DBMS — Redis.

  6. Select the Redis version. You cannot change the version after creation.

  7. Fill in the blocks:

  8. Check the cluster price.

  9. Click Create cluster.

Node configuration

  1. Select a configuration line.

  2. 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.

  1. Select the Collect technical cluster logs to the logging service checkbox.

  2. Select an existing log group or create a new one.

  3. 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:

  1. 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.

  2. 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.

  1. If you selected Redis version 6, select an eviction policy in the Maxmemory Policy field.

  2. 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

  1. Enter the user password or click Generate. The password must contain:

    • 32 to 64 characters;
    • uppercase and lowercase Latin letters;
    • digits;
    • special characters.
  2. 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.