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

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

# Create a Kafka 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 — Kafka.

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

7. Fill in the blocks:

   * [Node configuration](#node-configuration);
   * optional: [Logging](#logging);
   * [Network](#network);
   * optional: [Security](#security);
   * optional: [DBMS settings](#settings).

8. Check the cluster price.

9. Click **Create cluster**.

## Node configuration \{#node-configuration}

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

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

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

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

## Optional: Logging \{#logging}

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

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

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

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

## Network \{#network}

A Kafka cluster can be added to a new subnet or an existing one. The subnet can be:

* [private](/cloud-servers/cloud-networks/private-networks-and-subnets.mdx) — no internet access. You cannot use a public IP address.

* [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, in the **Subnet** field, select an existing one. At least one address must be available in the subnet. You cannot change the subnet after cluster creation.

    2. To add a new private subnet:

       2.1. In the **Subnet** field, select **New private subnet**. 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. At least one address must be available in the subnet. 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**. 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/kafka/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: DBMS settings \{#settings}

To view the default [DBMS settings](/managed-databases/kafka/settings.mdx) or change them, click **Edit**. We recommend changing setting values only when necessary—incorrectly selected values may lead to cluster failure or performance degradation.

<Formbricks />
