Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Managed Service for ClickHouse®
  • Getting started
    • All guides
      • Information about existing clusters
      • Creating a cluster
      • Updating cluster settings
      • ClickHouse® version upgrade
      • Stopping and starting a cluster
        • Managing ClickHouse® hosts
        • Managing ZooKeeper hosts
        • Managing ClickHouse® Keeper hosts
        • Migrating hosts to a different availability zone
      • Managing backups
      • Deleting a cluster
  • Access management
  • Pricing policy
  • Terraform reference
  • Yandex Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes

In this article:

  • Getting a list of cluster hosts
  • Creating a ClickHouse® Keeper host
  • Changing ClickHouse® Keeper settings
  • Restarting a host
  • Converting non-replicated tables to replicated ones
  • Deleting a ClickHouse® Keeper host
  1. Step-by-step guides
  2. Clusters
  3. Managing hosts
  4. Managing ClickHouse® Keeper hosts

Managing ClickHouse® Keeper hosts

Written by
Yandex Cloud
Updated at December 22, 2025
  • Getting a list of cluster hosts
  • Creating a ClickHouse® Keeper host
  • Changing ClickHouse® Keeper settings
  • Restarting a host
  • Converting non-replicated tables to replicated ones
  • Deleting a ClickHouse® Keeper host

After creating a cluster with separate ClickHouse® Keeper hosts, you can:

  • Get a list of hosts.
  • Create a host.
  • Change ClickHouse® Keeper settings.
  • Restart a host.
  • Convert non-replicated tables to replicated ones.
  • Delete a ClickHouse® Keeper host.

For more information about ClickHouse® Keeper hosts, see ClickHouse® Keeper.

Getting a list of cluster hostsGetting a list of cluster hosts

Management console
CLI
REST API
gRPC API
  1. In the management console, select the folder the cluster is in.
  2. Go to Managed Service for ClickHouse.
  3. Click the cluster name and select the Hosts tab.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

To get a list of cluster hosts, run this command:

yc managed-clickhouse host list \
   --cluster-name=<cluster_name>
+----------------------------+--------------+---------+--------+---------------+
|            NAME            |  CLUSTER ID  |  ROLE   | HEALTH |    ZONE ID    |
+----------------------------+--------------+---------+--------+---------------+
| rc1b...mdb.yandexcloud.net | c9qp71dk1... | MASTER  | ALIVE  | ru-central1-b |
| rc1a...mdb.yandexcloud.net | c9qp71dk1... | REPLICA | ALIVE  | ru-central1-a |
+----------------------------+--------------+---------+--------+---------------+

You can get the cluster name with the list of clusters in the folder.

  1. Get an IAM token for API authentication and put it in an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  2. Call the Cluster.ListHosts method, e.g., via the following cURL request:

    curl \
        --request GET \
        --header "Authorization: Bearer $IAM_TOKEN" \
        --url 'https://mdb.api.cloud.yandex.net/managed-clickhouse/v1/clusters/<cluster_ID>/hosts'
    

    You can get the cluster ID with the list of clusters in the folder.

  3. View the server response to make sure your request was successful.

  1. Get an IAM token for API authentication and save it as an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  2. Clone the cloudapi repository:

    cd ~/ && git clone --depth=1 https://github.com/yandex-cloud/cloudapi
    

    Below, we assume the repository contents are stored in the ~/cloudapi/ directory.

  3. Call the ClusterService.ListHosts method, e.g., via the following gRPCurl request:

    grpcurl \
        -format json \
        -import-path ~/cloudapi/ \
        -import-path ~/cloudapi/third_party/googleapis/ \
        -proto ~/cloudapi/yandex/cloud/mdb/clickhouse/v1/cluster_service.proto \
        -rpc-header "Authorization: Bearer $IAM_TOKEN" \
        -d '{
                "cluster_id": "<cluster_ID>"
            }' \
        mdb.api.cloud.yandex.net:443 \
        yandex.cloud.mdb.clickhouse.v1.ClusterService.ListHosts
    

    You can get the cluster ID with the list of clusters in the folder.

  4. View the server response to make sure your request was successful.

Creating a ClickHouse® Keeper hostCreating a ClickHouse® Keeper host

Management console
  1. In the management console, navigate to the folder dashboard and select Managed Service for ClickHouse.
  2. Click the cluster name and go to the Hosts tab.
  3. Click Create ClickHouse Keeper host in the top-right corner of the page.
  4. Select the availability zone and a subnet inside it.
  5. Click Save.

Changing ClickHouse® Keeper settingsChanging ClickHouse® Keeper settings

Management console
  1. In the management console, navigate to the folder dashboard and select Managed Service for ClickHouse.
  2. Select the cluster and click Edit in the top panel.
  3. Under Clickhouse Keeper host class, select the platform, VM type, and required ClickHouse® Keeper host class.
  4. Under ClickHouse Keeper storage size, specify the disk type and storage size, and set up automatic storage size increase.
  5. Click Save changes.

Restarting a hostRestarting a host

You may need to restart hosts to promptly address such issues as:

  • Resource overutilization
  • Memory leak
  • Request deadlock
  • Unresponsive ClickHouse® operations and internal processes
Management console
CLI
REST API
gRPC API

To restart a single host:

  1. In the management console, select the folder the cluster is in.
  2. Go to Managed Service for ClickHouse.
  3. Click the cluster name and navigate to the Hosts tab.
  4. In the host row, click and select Restart.
  5. In the window that opens, enable I am restarting host and click Confirm.

To restart multiple hosts in one go:

  1. In the management console, select the folder the cluster is in.
  2. Go to Managed Service for ClickHouse.
  3. Click the cluster name and navigate to the Hosts tab.
  4. Select the hosts you want to restart and click Restart at the bottom of the screen.
  5. In the window that opens, click Confirm.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

To restart one or multiple hosts, run the command below providing their names. Use the space character as a separator.

Here is the command to restart a single host:

yc managed-clickhouse host restart <host_name> \
   --cluster-name=<cluster_name>

You can get the host name with the list of cluster hosts, and the cluster name, with the list of clusters in the folder.

  1. Get an IAM token for API authentication and save it as an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  2. Call the Cluster.RestartHosts method, e.g., via the following cURL request:

    curl \
        --request POST \
        --header "Authorization: Bearer $IAM_TOKEN" \
        --header "Content-Type: application/json" \
        --url 'https://mdb.api.cloud.yandex.net/managed-clickhouse/v1/clusters/<cluster_ID>/hosts:restartHosts' \
        --data '{
                  "hostNames": [
                    <list_of_host_names>
                  ]
                }'
    

    Where hostNames is an array of strings. Each string is the name of the host to restart. You can get the host names with the list of hosts in the cluster.

    You can get the cluster ID with the list of clusters in the folder.

  3. View the server response to make sure your request was successful.

  1. Get an IAM token for API authentication and save it as an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  2. Clone the cloudapi repository:

    cd ~/ && git clone --depth=1 https://github.com/yandex-cloud/cloudapi
    

    Below, we assume the repository contents are stored in the ~/cloudapi/ directory.

  3. Call the ClusterService.RestartHosts method, e.g., via the following gRPCurl request:

    grpcurl \
        -format json \
        -import-path ~/cloudapi/ \
        -import-path ~/cloudapi/third_party/googleapis/ \
        -proto ~/cloudapi/yandex/cloud/mdb/clickhouse/v1/cluster_service.proto \
        -rpc-header "Authorization: Bearer $IAM_TOKEN" \
        -d '{
                "cluster_id": "<cluster_ID>",
                "host_names": [
                  <list_of_host_names>
                ]
            }' \
        mdb.api.cloud.yandex.net:443 \
        yandex.cloud.mdb.clickhouse.v1.ClusterService.RestartHosts
    

    Where host_names is an array of strings. Each string is the name of the host to restart. You can get the host names with the list of hosts in the cluster.

    You can get the cluster ID with the list of clusters in the folder.

  4. View the server response to make sure your request was successful.

Converting non-replicated tables to replicated onesConverting non-replicated tables to replicated ones

To automatically convert non-replicated MergeTree tables to replicated ReplicatedMergeTree tables, enable the Convert non-replicated tables setting when activating the coordination service.

Deleting a ClickHouse® Keeper hostDeleting a ClickHouse® Keeper host

Warning

You can delete only one ClickHouse® Keeper host at a time. However, there must be at least three ClickHouse® Keeper hosts left in the cluster at all times.

Management console
CLI
REST API
gRPC API
  1. Navigate to the folder dashboard and select Managed Service for ClickHouse.
  2. Click the cluster name and go to the Hosts tab.
  3. In the host row, click and select Delete.
  4. Confirm the deletion.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

To delete a ClickHouse® Keeper host:

  1. See the description of the CLI command for deleting a host:

    yc managed-clickhouse hosts delete --help
    
  2. Delete the host by running this command:

    yc managed-clickhouse hosts delete <host_name> \ 
      --cluster-id=<cluster_ID>
    

    You can get the host name with the list of hosts in the cluster.

    You can get the cluster ID with the list of clusters in the folder.

  1. Get an IAM token for API authentication and put it in an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  2. Call the Cluster.DeleteHosts method, e.g., via the following cURL request:

    curl \
      --request POST \
      --header "Authorization: Bearer $IAM_TOKEN" \
      --header "Content-Type: application/json" \
      --url 'https://mdb.api.cloud.yandex.net/managed-clickhouse/v1/clusters/<cluster_ID>/hosts:batchDelete' \
      --data '{
        "hostNames": [
          <host_name>
        ]
      }'
    

    You can get the host name with the list of hosts in the cluster.

    You can get the cluster ID with the list of clusters in the folder.

  3. Check the server response to make sure your request was successful.

  1. Get an IAM token for API authentication and put it in an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  2. Clone the cloudapi repository:

    cd ~/ && git clone --depth=1 https://github.com/yandex-cloud/cloudapi
    

    Below, we assume the repository contents are stored in the ~/cloudapi/ directory.

  3. Call the ClusterService.DeleteHosts method, e.g., via the following gRPCurl request:

    grpcurl \
      -format json \
      -import-path ~/cloudapi/ \
      -import-path ~/cloudapi/third_party/googleapis/ \
      -proto ~/cloudapi/yandex/cloud/mdb/clickhouse/v1/cluster_service.proto \
      -rpc-header "Authorization: Bearer $IAM_TOKEN" \
      -d '{
        "cluster_id": "<cluster_ID>",
        "host_names": [
          <host_name>
        ]
      }' \
      mdb.api.cloud.yandex.net:443 \
      yandex.cloud.mdb.clickhouse.v1.ClusterService.DeleteHosts
    

    You can get the host name with the list of hosts in the cluster.

    You can get the cluster ID with the list of clusters in the folder.

  4. View the server response to make sure your request was successful.

ClickHouse® is a registered trademark of ClickHouse, Inc.

Was the article helpful?

Previous
Managing ZooKeeper hosts
Next
Migrating hosts to a different availability zone
© 2026 Direct Cursus Technology L.L.C.