Stopping and starting Apache Kafka® clusters
You can stop and restart Apache Kafka® clusters, if required. When a cluster is stopped, all data in it is retained and will be available again when you restart the cluster.
Stopping a cluster
- In the management console
, go to the appropriate folder. - In the list of services, select Managed Service for Kafka.
- Find the cluster you need in the list, click
- 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 STOPPED
clusters.
- In the management console
, go to the appropriate folder. - In the list of services, select Managed Service for Kafka.
- Find the stopped cluster you need in the list, click the
- 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.