Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • 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
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 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 an cluster YTsaurus

Written by
Yandex Cloud
Updated at October 20, 2025

Note

The service is at the Preview stage.

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. Navigate to the folder page and select Managed Service for YTsaurus.

  2. Select the cluster and click Edit in the top panel.

  3. Under Basic parameters:

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

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

  6. Click Save changes.

To change the cluster settings:

  1. Open the current Terraform configuration file that defines 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 parameters:

        • 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: h for hours, m for minutes, and s for seconds.

  3. Validate your configuration.

    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 article.

To change the cluster settings:

  1. Get an IAM token for API authentication and save it as 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 a folder.

    • updateMask: Name of the setting you are updating.

    • name: Cluster name.

    • description: Cluster description.

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

    • spec: Configuration of YTsaurus cluster components.

      • storage: Storage parameters:

        • 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. Use the Cluster.Update method and send the following request, e.g., via cURL:

    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 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. 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 a folder.

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

      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 Provide labels in "<key>": "<value>" format.

    • spec: Configuration of YTsaurus cluster components.

      • storage: Storage parameters:

        • 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. Use the ClusterService/Update call and send the following request, e.g., via gRPCurl:

    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. View 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
© 2025 Direct Cursus Technology L.L.C.