---
title: "Link a Kafka cluster to a dedicated server"
sidebar_label: "Link a cluster to a dedicated server"
sidebar_position: 13
description: "How to link a Kafka cluster to a dedicated server"
---

import Formbricks from '@theme/MDXComponents/Formbricks'
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import MoreVerticalIcon from '@selectel/docux/icons/more-vertical'
import {TabItemLabel} from '@selectel/docux/components'
import CreateGlobalRouter from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/global-router/create-global-router.mdx'
import ConnectDedicatedNetworkToGlobalRouter from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/global-router/connect-dedicated-network-to-global-router.mdx'
import ConnectCloudNetworkToGlobalRouter from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/global-router/connect-cloud-network-to-global-router.mdx'
import ConfigureNetworkInterfaceOfPrivateNetwork from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/dedicated/configure-network-interface-of-private-network.mdx'
import WriteStaticRoutesDedicated from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/global-router/write-static-routes-dedicated.mdx'

# Link a Kafka cluster to a dedicated server

:::info

Some dedicated server configurations of the [Chipcore Line](/dedicated/order/dedicated-configurations.mdx#prebuilt-servers) cannot be added to a global router network because they lack a port for connecting to a private network. You can check for a private network port in the [Control panel](https://my.selectel.ru/servers/servers/) on the server page on the **Ports** tab.

:::

1. [Create a global router](#create-global-router).
2. [Connect a network and subnet to the global router up to a dedicated server VLAN](#connect-network-and-subnet-to-router-up-to-dedicated-server-vlan).
3. [Connect a network and subnet to the global router up to a Cloud Platform project](#connect-network-and-subnet-to-router-up-to-cloud-platform-project).
4. [Assign IP addresses from the created subnets to a dedicated server](#assign-ip-to-dedicated-server).
5. [Specify routes on the dedicated server](#write-routes-on-dedicated-server).
6. [Create a Managed Database cluster](#create-managed-database-cluster).

See an [example of network organization](#example-of-network-organization-between-managed-database-and-dedicated-server) between a dedicated server and a Managed Database.

## Example of network organization between a Managed Database and a dedicated server \{#example-of-network-organization-between-managed-database-and-dedicated-server}

If you need to configure private connectivity between a dedicated server in the SPB-2 pool and a new Managed Database in the ru-2 pool:

1. Create a global router.
2. Connect two private subnets to the router — `192.168.0.0/29` with a gateway of `192.168.0.1` for the SPB-2 pool and `172.16.0.0/29` with a gateway of `172.16.0.1` for the ru-2 pool.
3. Assign an address from the `192.168.0.0/29` subnet to a dedicated server, for example `192.168.0.2`.
4. Specify routes on the dedicated server in the SPB-2 pool — to the `172.16.0.0/29` subnet via the `192.168.0.1` gateway.
5. Create a new Managed Database cluster on subnet `172.16.0.0/29`.

![](https://423.selcdn.ru/kb/globalrouter-dbaas-create-network-database-to-dedicated-server-example-LANG-THEME.png)

## 1. Create a global router \{#create-global-router}

<CreateGlobalRouter />

## 2. Connect a network and subnet to the global router to the dedicated server VLAN \{#connect-network-and-subnet-to-router-up-to-dedicated-server-vlan}

<ConnectDedicatedNetworkToGlobalRouter />

## 3. Connect a network and subnet to the global router to the Cloud Platform project \{#connect-network-and-subnet-to-router-up-to-cloud-platform-project}

<ConnectCloudNetworkToGlobalRouter />

## 4. Assign an IP address to the dedicated server \{#assign-ip-to-dedicated-server}

Configure the local port on the dedicated server that is included in the global router network. Assign an IP address from the private subnet that you [connected to the global router in step 2](#connect-network-and-subnet-to-router-up-to-dedicated-server-vlan).

<ConfigureNetworkInterfaceOfPrivateNetwork />

## 5. Specify a route on the dedicated server \{#write-routes-on-dedicated-server}

You must configure a static route on the server to the Cloud Platform subnet that you [connected to the global router in step 3](#connect-network-and-subnet-to-router-up-to-cloud-platform-project).

<WriteStaticRoutesDedicated />

## 6. Create a Managed Database cluster \{#create-managed-database-cluster}

1. In the [Control panel](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 will not be able to change the location after creation.

5. Select a DBMS — Kafka.

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

7. Select a [configuration line](/managed-databases/kafka/configurations.mdx#configuration-lines) and specify the number of vCPUs, RAM size, and disk size.

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

8. Select or create a subnet:

   * private subnet — a subnet without internet access. You can connect a static public IP address;
   * or public subnet — all public subnet addresses are accessible from the internet.

   Addresses are assigned to each node in the cluster. Ensure the number of addresses in the network is not less than the number of nodes in the cluster. The network cannot be changed after the cluster is created.

   A public IP address cannot be used.

   You can [restrict the list of addresses](/managed-databases/kafka/network-access-control.mdx) from which access to the database cluster is allowed.

9. If you are creating a private subnet, specify the subnet CIDR.

10. If you want to use the DHCP protocol for a private subnet, turn on the \*\*DHCP \*\* switch. Read more about the DHCP protocol in the Selectel blog article [DHCP protocol operating principles](https://selectel.ru/blog/dhcp-protocol/).

11. If you are creating a public network, specify the subnet size.

12. Optional: to change the [DBMS settings](/managed-databases/kafka/settings.mdx), click **Change**. We recommend changing setting values only when necessary — incorrectly selected values may reduce cluster performance.

13. Click **Create cluster**. The cluster will be ready for operation when it transitions to the `ACTIVE` status.

<Formbricks />
