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 YTsaurus
  • Getting started
    • All guides
    • Information about existing clusters
    • Creating a cluster
    • Connecting to a cluster
    • Updating a cluster
    • Stopping and starting a cluster
    • Deleting a cluster
  • Access management
  • Pricing policy
  • Terraform reference
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Updating a cluster

Updating a YTsaurus cluster

Written by
Yandex Cloud
Updated at January 29, 2026

After creating a cluster, you can edit its basic and advanced settings.

Management console
Terraform
REST API
gRPC API

To change the cluster settings:

  1. Open the folder dashboard.

  2. Go to Managed Service for YTsaurus.

  3. Select your cluster and click Edit in the top panel.

  4. Under Basic parameters:

    • Edit the cluster name and description.
    • Delete or add new labels.
  5. Under Storage, change the number of disks.

  6. Under Exec node configuration, change the number of exec nodes.

  7. Click Save changes.

To change the cluster settings:

  1. Open the current Terraform configuration file describing your infrastructure.

    For more information about creating this file, see Creating clusters.

  2. Edit the cluster settings by changing the value of the relevant field in the configuration file. You can only edit a single setting per cluster resource update operation.

    Alert

    Do not change the cluster name and ID using Terraform. This will delete the existing cluster and create a new one.

    Here is an example of the configuration file structure:

    resource "yandex_ytsaurus_cluster" "my_cluster" {
      description         = "<cluster_description>"
      name                = "my-ytsaurus-cluster"
      folder_id           = "b1gmioovukmd********"
    
      labels = {
        <label_list>
      }
      ...
      spec = {
        ...
        storage = {
          hdd = {
            ...
            "count": "<number_of_HDDs>"
          },
          ssd = {
            ...
            "count": "<number_of_SSDs>",
          }
        }
        compute = [{
          ...
          scale_policy = {
            fixed = {
              size = <number_of_exec_nodes>
            }
          }
        }]
        ...
        odin = {
          checks_ttl = "<TTL_of_checks_by_Odin>"
        }
      }
    }
    

    Where:

    • description: Cluster description.

    • labels: List of labels. Provide labels in <key> = "<value>" format.

    • spec: Configuration of YTsaurus cluster components.

      • storage: Storage settings:

        • hdd.count: Number of HDDs. You can only increase the number; reducing it is not supported.
        • ssd.count: Number of SSDs. You can only increase the number; reducing it is not supported.
      • compute: Configuration of exec nodes:

        • scale_policy.fixed.size: Number of exec nodes for the fixed scaling policy. Currently, this is the only policy YTsaurus supports.
      • odin.checks_ttl: Frequency of checks by Odin, an internal monitoring tool. Provide with units of measurement: h (hours), m (minutes), s (seconds).

  3. Make sure the settings are correct.

    1. In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.

    2. Run this command:

      terraform validate
      

      Terraform will show any errors found in your configuration files.

  4. Confirm updating the resources.

    1. Run this command to view the planned changes:

      terraform plan
      

      If you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.

    2. If everything looks correct, apply the changes:

      1. Run this command:

        terraform apply
        
      2. Confirm updating the resources.

      3. Wait for the operation to complete.

For more information, see this Terraform provider guide.

To change the cluster settings:

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

    export IAM_TOKEN="<IAM_token>"
    
  2. You can only edit a single setting per cluster update operation. Create a file named body.json with the required setting from the example below. This example only shows settings to update; for the full list of available settings, see this API guide.

    {
      "clusterId": "<cluster_ID>",
      "updateMask": "<name_of_setting_to_update>",
      "name": "<cluster_name>",
      "description": "<cluster_description>",
      "labels": { <label_list> },
      "spec": {
        "storage": {
          "hdd": {
            "count": "<number_of_HDDs>"
          },
          "ssd": {
            "count": "<number_of_SSDs>"
          }
        },
        "compute": [
          {
            "scalePolicy": {
              "fixed": {
                "size": "<number_of_exec_nodes>"
              }
            }
          }
        ],
        "odin": {
          "checksTtl": "<TTL_of_checks_by_Odin>"
        }
      }
    }
    

    Where:

    • clusterId: Cluster ID. You can get it with the list of clusters in the folder.

    • updateMask: Name of the setting you are updating.

    • name: Cluster name.

    • description: Cluster description.

    • labels: List of labels provided in "<key>": "<value>" format.

    • spec: Configuration of YTsaurus cluster components.

      • storage: Storage settings:

        • hdd.count: Number of HDDs. You can only increase the number; reducing it is not supported.
        • ssd.count: Number of SSDs. You can only increase the number; reducing it is not supported.
      • compute: Configuration of exec nodes.

        • scalePolicy.fixed.size: Number of exec nodes for the fixed scaling policy. Currently, this is the only policy YTsaurus supports.
      • odin.checksTtl: TTL of checks by Odin, an internal monitoring tool. Provide the value with measurement units: s (seconds).

  3. Call the Cluster.Update method, e.g., via the following cURL request:

    curl \
        --request PATCH \
        --header "Authorization: Bearer $IAM_TOKEN" \
        --url 'https://ytsaurus.api.cloud.yandex.net/ytsaurus/v1/clusters'
        --data '@body.json'
    
  4. View the server response to make sure your request was successful.

To change the cluster settings:

  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 that the repository contents reside in the ~/cloudapi/ directory.

  3. You can only edit a single setting per cluster update operation. Create a file named body.json with the required setting from the example below. This example only shows settings to update; for the full list of available settings, see this API guide.

    {
      "cluster_id": "<cluster_ID>",
      "update_mask": "<name_of_setting_to_update>",
      "name": "<cluster_name>",
      "description": "<cluster_description>",
      "labels": { <label_list> },
      "spec": {
        "storage": {
          "hdd": {
            "count": "<number_of_HDDs>"
          },
          "ssd": {
            "count": "<number_of_SSDs>"
          }
        },
        "compute": [
          {
            "scale_policy": {
              "fixed": {
                "size": "<number_of_exec_nodes>"
              }
            }
          }
        ],
        "odin": {
          "checks_ttl": "<TTL_of_checks_by_Odin>"
        }
      }
    }
    

    Where:

    • cluster_id: Cluster ID. You can get it with the list of clusters in the folder.

    • update_mask: List of parameters to update as an array of strings (paths[]).

      In this case, the array consists of a single element.

      Format for listing settings
      "update_mask": {
          "paths": [
              "<name_of_setting_to_update>"
          ]
      }
      
    • name: Cluster name.

    • description: Cluster description.

    • labels: List of labels provided in "<key>": "<value>" format.

    • spec: Configuration of YTsaurus cluster components.

      • storage: Storage settings:

        • hdd.count: Number of HDDs. You can only increase the number; reducing it is not supported.
        • ssd.count: Number of SSDs. You can only increase the number; reducing it is not supported.
      • compute: Configuration of exec nodes.

        • scale_policy.fixed.size: Number of exec nodes for the fixed scaling policy. Currently, this is the only policy YTsaurus supports.
      • odin.checks_ttl: TTL of checks by Odin, an internal monitoring tool. Provide the value with measurement units: s (seconds).

  4. Call the ClusterService/Update method, e.g., via the following gRPCurl request:

    grpcurl \
        -format json \
        -import-path ~/cloudapi/ \
        -import-path ~/cloudapi/third_party/googleapis/ \
        -proto ~/cloudapi/yandex/cloud/ytsaurus/v1/cluster_service.proto \
        -rpc-header "Authorization: Bearer $IAM_TOKEN" \
        -d @ \
        ytsaurus.api.cloud.yandex.net:443 \
        yandex.cloud.ytsaurus.v1.ClusterService.Update \
        < body.json
    
  5. Check the server response to make sure your request was successful.

Was the article helpful?

Previous
Connecting to a cluster
Next
Stopping and starting a cluster
© 2026 Direct Cursus Technology L.L.C.