---
title: "Create a Redis cluster"
sidebar_label: "Create a cluster"
sidebar_position: 3
description: "How to create a Managed Database Redis cluster"
---

import Formbricks from '@theme/MDXComponents/Formbricks';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import { TabItemLabel } from '@selectel/docux/components';

# Create a Redis cluster

1. In the [Dashboard](https://my.selectel.ru/vpc/default/dbaas/), on the top menu click **Products** and select **Managed Databases**.

2. Click **Create cluster**.

3. Enter the cluster name.

4. Select a [location](/infrastructure/locations.mdx). You cannot change the location after creation.

5. Select the DBMS — Redis.

6. Select the [Redis version](/managed-databases/redis/configurations.mdx#versions). You cannot change the version after creation.

7. Fill in the blocks:

   * [Node configuration](#node-configuration);
   * optional: [Fault tolerance](#cluster-fault-tolerance);
   * optional: [Logging](#logging);
   * [Network](#network);
   * optional: [Security](#security);
   * optional: [Eviction policy](#eviction-policy);
   * [User password](#users-password).

8. Check the cluster price.

9. Click **Create cluster**.

## Node configuration \{#node-configuration}

1. Select a [configuration line](/managed-databases/redis/configurations.mdx#configuration-lines).

2. Select a configuration.

After cluster creation, you can change the node configuration — [scale the cluster](/managed-databases/redis/resize-cluster.mdx).

## Optional: Fault tolerance \{#cluster-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](https://files.selectel.ru/docs/ru/conditions-cloud-platform.pdf) applies — we guarantee 99.95% write availability and 99.99% read availability.

## Optional: Logging \{#logging}

To access the [cluster logs](/managed-databases/redis/logs.mdx), 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 \{#network}

A Redis cluster can be added to a new or existing subnet.The subnet can be:

* [private](/cloud-servers/cloud-networks/private-networks-and-subnets.mdx) — with no access from the internet.You can assign a [public IP address](/managed-databases/redis/public-ip.mdx) for internet access.A separate public IP address is assigned to each cluster node.To [assign a public IP address](/managed-databases/redis/public-ip.mdx#assign-public-ip-in-existing-cluster), the private subnet must meet the [requirements](/managed-databases/redis/public-ip.mdx#requirements);

* [public](/cloud-servers/cloud-networks/public-subnets.mdx) — where all addresses are accessible from the internet.

<Tabs queryString="create-nets">
  <TabItem value="private-net" default>
    <TabItemLabel>
      Private subnet
    </TabItemLabel>

    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 of the node to which you need to provide public access. The private subnet must meet the [requirements](/managed-databases/redis/public-ip/#requirements). If the subnet does not meet the [requirements](/managed-databases/redis/public-ip.mdx#requirements), you can [assign a public IP address](/managed-databases/redis/public-ip.mdx#assign-public-ip-in-existing-cluster) 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.
  </TabItem>

  <TabItem value="public-net">
    <TabItemLabel>
      Public subnet
    </TabItemLabel>

    1. To add an existing public subnet, 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.

    2. To add a new public subnet:

       2.1. In the **Subnet** field, select **New public 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 size.
  </TabItem>
</Tabs>

## Optional: Security \{#security}

Select [security groups](/managed-databases/redis/network-access-control.mdx#security-groups-in-managed-databases) to filter incoming and outgoing cluster traffic.

If the **Security** block is missing, [traffic filtering (port security](/cloud-servers/cloud-networks/about-networks.mdx#traffic-filtering-port-security)) is disabled in the cluster network. If traffic filtering is disabled, all traffic will be allowed.

## Optional: Eviction policy \{#eviction-policy}

In a Redis cluster, you can select an [eviction policy](/managed-databases/redis/eviction-policy.mdx) — 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](/managed-databases/redis/configurations.mdx#versions) 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](/managed-databases/redis/eviction-policy.mdx#edit-eviction-policy) after cluster creation.

## User password \{#users-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](/managed-databases/redis/connect-to-cluster.mdx).The password cannot be viewed in the Control Panel, but it can be [changed](/managed-databases/redis/change-password.mdx).

<Formbricks />
