# Create a Kafka Cluster

## Prerequisites

* Before setting up a Kafka Cluster, ensure that you are working within a provisioned [<mark style="color:blue;">Virtual Data Center (VDC)</mark>](https://docs.ionos.com/cloud/support/general-information/glossary-of-terms#virtual-data-center-vdc) that contains at least one VM in a private LAN, which will access the cluster via the private LAN. The VM you create is counted against the quota allocated in your contract.

## Create a cluster

To create a Kafka cluster, follow these steps:

1. In the **DCD**, go to **Menu** > **Data Analytics** > **Events Streams for Apache Kafka**.
2. Click **Create cluster**.

![Create cluster](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-f6f9816d21a5bebe9cb82c24b7dd9b2cbdef5ac4%2Fkafka-create-cluster-button.png?alt=media)

3. Configure your cluster properties.

![Create cluster](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-79815926b5df5aba593ec0eea91aff863af66283%2Fkafka-properties.png?alt=media)

* **Cluster Name:** Enter a unique name for your cluster. This name will help you identify the cluster in the dashboard.
* **Kafka Version:** Select the Kafka version you wish to use. Currently, **version 3.9.0** is supported.
* **Cluster Size:** Choose the appropriate size for your cluster:
  * **XS (Extra Small):** Suitable for small-scale testing and development environments.
  * **S (Small):** Ideal for slightly larger workloads with moderate throughput needs.
  * **M (Medium):** Designed for medium-sized workloads with significant data volume and consistent throughput requirements.
  * **L (Large):** Suitable for large-scale applications that require high throughput and robust fault tolerance.
  * **XL (Extra Large):** Tailored for enterprise-grade, high-performance environments with extremely high throughput and storage needs.
* For more details on sizing, see [<mark style="color:blue;">Cluster Sizes</mark>](https://docs.ionos.com/cloud/data-analytics/kafka/overview/cluster-sizes).
* **Location:** Select the region for your cluster. For supported regions, see [<mark style="color:blue;">Locations</mark>](https://docs.ionos.com/cloud/data-analytics/overview#locations).

1. Choose a datacenter and a LAN.

![Create cluster](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-065eda9831afa2c02ce09e54b626e7fd4dac14f8%2Fkafka-datacenter.png?alt=media)

* **Datacenter:** Select the datacenter and region where you want to create your cluster. The region you choose determines the geographical placement of your Kafka cluster, affecting latency and compliance with local regulations.
* **Datacenter LAN:** Your cluster will be connected to this network.

5. Configure the addresses for your Kafka brokers. These addresses will be used by clients to connect to the Kafka cluster. Ensure that the addresses are correctly configured to allow for seamless communication between the brokers and your clients.

   The IP addresses you choose must belong to the same subnet as the LAN you selected in the previous step. This ensures proper network routing and communication within the cluster. To find out your subnet IP follow the instructions on the DCD screen.

{% hint style="info" %}
**Info:** The **Estimated costs** will be displayed based on the input. It is an estimate and certain variables such as traffic are not considered.
{% endhint %}

![Estimated Costs](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-0ded6889552841a709e09a562cff6d46a32badf8%2Fkafka-estimate.png?alt=media)

6. Click **Save** to deploy your cluster.

![Save](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-f34af10e328704350ec7971dc9a021b2e9951319%2Fkafka-save.png?alt=media)

{% hint style="success" %}
**Result:** Your cluster is now being deployed. You can monitor its progress by returning to the Event Streams for Apache menu.
{% endhint %}

![The cluster is deploying](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-290c46875c06b4c564bc8aa66350196bd8a433e0%2Fkafka-deploying.png?alt=media)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ionos.com/cloud/data-analytics/kafka/dcd-howtos/create-kafka-cluster.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
