Stopping and starting an Apache Kafka® cluster
You can stop and restart an Apache Kafka® cluster as needed. When stopped, a cluster retains all its data. The data will be available again as soon as you restart the cluster.
Stopping a cluster
- In the management console
, go to the relevant folder. - In the list of services, select Managed Service for Kafka.
- Find the cluster in the list, click
and select Stop. - In the dialog box that opens, confirm that you want to stop the cluster and click Stop.
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
To stop a cluster, run the command:
yc managed-kafka cluster stop <cluster_name_or_ID>
To stop a cluster, use the stop REST API method for the Cluster resource or the ClusterService/Stop gRPC API call and provide the cluster ID in the clusterId
request parameter.
To find out the cluster ID, get a list of clusters in the folder.
Starting a cluster
You can restart clusters with the Stopped
status.
- In the management console
, go to the relevant folder. - In the list of services, select Managed Service for Kafka.
- In the list, find the relevant stopped cluster, click
and select Start. - In the window that opens, click Start.
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
To start a cluster, run the command:
yc managed-kafka cluster start <cluster_name_or_ID>
To start a cluster, use the start REST API method for the Cluster resource or the ClusterService/Start gRPC API call and provide the cluster ID in the clusterId
request parameter.
To find out the cluster ID, get a list of clusters in the folder.