Changing cluster settings
After creating an Apache Kafka® cluster, you can:
- Update the cluster configuration.
- Move the cluster from the current folder to another one.
Warning
If the cluster has dedicated ZooKeeper hosts, you can't change their class or settings. For more information, see Relationship between service resources.
Update the configuration
Warning
The number of Apache Kafka® broker hosts can only be increased.
Management console
API
-
Go to the folder page and select Managed Service for Apache Kafka®.
-
Select the cluster and click Edit in the top panel.
-
Change the required settings:
- To change the class of broker hosts, select a new host class in the corresponding section.
- To change storage settings, select the storage type and its size in the corresponding section.
- To change the number of broker hosts in each availability zone that was chosen when creating a cluster, change the value of the corresponding setting.
-
Click Save.
Use the update API method and pass the following in the request:
- The cluster ID in the
clusterId
parameter. To find out the cluster ID, get a list of clusters in the folder. - In the
updateMask
parameter, a list of settings to update (in a single line, comma-separated). If this parameter is omitted, the API method resets any cluster settings that aren't explicitly specified in the request to their default values. - The new cluster configuration in the
configSpec
parameter.
Move a cluster
API
To move a cluster from the current folder to a different one, use the move API method and pass the following in the request:
- The cluster ID in the
clusterId
parameter. To find out the cluster ID, get a list of clusters in the folder. - The ID of the destination folder in the
destinationFolderId
parameter.