Create a Kafka cluster
Control panel
Terraform
-
In control panel go to Cloud platform → Databases.
-
Click Create a cluster.
-
Enter the name of the cluster.
-
Select region.
-
Select pool. Once created, the pool will not be able to be modified.
-
Select RDBMS — Kafka.
-
Select the Kafka version. Once created, the version will not be able to be changed.
-
Select configuration line and specify the number of vCPUs, RAM size, and disk size.
Once the cluster has been created, you can change the configuration of the nodes — cluster scale.
-
Select or create a subnet:
- private subnet — a subnet without access from the Internet. You can connect a static public IP address;
- or public subnet — all addresses on a public subnet are accessible from the Internet.
Addresses are assigned to each node in the cluster. Make sure that the number of addresses in the network is not less than the number of nodes in the cluster. Once a cluster is created, the network cannot be changed.
A public IP address cannot be used.
You can address list from which access to the database cluster will be allowed.
-
If you are creating a private subnet, specify the CIDR of the subnet.
-
If you want to use DHCP for a private subnet, turn on the toggle switch DHCP. Read more about the DHCP protocol in Selectel's blog article How DHCP works.
-
If you are creating a public network, specify the subnet size.
-
Optional: to change DBMS settings, press Modify. We recommend that you change the settings only when necessary — incorrect values can reduce cluster performance.
-
Check the price of the cluster.
-
Click Create a cluster. The cluster will be ready for operation when it moves to status
ACTIVE
.
Use the instructions Create a Kafka cluster in the Terraform documentation.