---
title: "Create an OpenSearch cluster"
sidebar_label: "Create a cluster"
description: "How to create an OpenSearch cluster"
sidebar_position: 3
toc_max_heading_level: 2
---

import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import {TabItemLabel} from 'docs-kit/components'
import Formbricks from '@theme/MDXComponents/Formbricks'

# Create an OpenSearch cluster

1. In the [Dashboard](https://my.selectel.ru/vpc/default/dbaas/), from 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 the cluster is created.

5. Select the database engine — OpenSearch.

6. Select an [OpenSearch version](/managed-databases/opensearch/configurations.mdx#versions).

7. Fill in the sections:

   * [Network](#network);
   * optional: [Security](#security);
   * [Node group configuration](#node-group-configuration);
   * optional: [Logging](#logging);
   * [Administrator password](#administrators-password).

8. Check the price of the Managed Databases cluster.

9. Click **Create cluster**.

## Network \{#network}

An OpenSearch cluster can only be connected to a private subnet. You can create a new subnet or add the cluster to an existing one.

1. To add an existing private subnet, in the **Subnet** field, select an existing subnet.

2. To add a new private subnet:

   2.1. In the **Subnet** field, select **New private subnet**.

   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. After the cluster is created, the network cannot be changed.

## Optional: Security \{#security}

Select [security groups](/managed-databases/opensearch/network-access-control.mdx#security-groups-in-managed-databases) to filter incoming and outgoing cluster traffic. If the **Security** section 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 off, all traffic will be allowed.

## Node group configuration \{#node-group-configuration}

1. Configure the [node group with the Manager role](/managed-databases/opensearch/about-node-groups.mdx#manager-node-groups):

   1.1. Optional: change the node group name.

   1.2. Open the node group card.

   1.3. Select a [configuration line](/managed-databases/opensearch/configurations.mdx).

   1.4. If you selected a line with custom configurations, select a [disk type](/managed-databases/opensearch/volumes.mdx), specify the number of vCPUs, RAM size, and disk size.

   1.5. If you selected a line with fixed configurations, select a configuration.

   1.6. Specify the number of nodes in the group.

   1.7. Optional: to make the nodes in the group accessible from the internet, assign public IP addresses to them:

   * if you selected an existing private subnet, turn on the **Public access** toggle. The private subnet must meet the [requirements](/managed-databases/opensearch/public-ip.mdx#requirements);
   * if you are creating a new private subnet, [assign public IP addresses](/managed-databases/opensearch/public-ip.mdx#assign-public-ip-in-existing-cluster) after the cluster is created.

   IP addresses are automatically assigned to all nodes in the group.

2. Repeat steps 1.1–1.7 for the [node group with the Data role](/managed-databases/opensearch/about-node-groups.mdx#data-node-groups).

3. Optional: to add extra node groups, click **Add node group**, and repeat steps 1.1–1.7.

## Optional: Logging \{#logging}

To access [cluster logs](/managed-databases/opensearch/logs), enable logging. Logging consumes some of the cluster's computing resources.

1. Select the **Collect technical cluster logs to the log service** checkbox.

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

3. If you selected a new group, enter its name.

## Administrator password \{#administrators-password}

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

   * at least 8 characters;
   * uppercase and lowercase Latin letters;
   * digits;
   * special characters — `!?@$%&*.`.

2. Copy and save the user password — it cannot be viewed in the Dashboard after the cluster is created.

<Formbricks />
