Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Managed Service for Elasticsearch
  • Getting started
    • All guides
      • Information about existing clusters
      • Creating a cluster
        • Updating cluster settings
        • Updating the Elasticsearch version and edition
        • Managing plugins
        • Managing extensions
      • Stopping and starting a cluster
      • Managing hosts
      • Migrating hosts to a different availability zone
      • Managing backups
      • Configuring access to Object Storage
      • Deleting a cluster
    • User management
  • Access management
  • Pricing policy
  • CLI reference
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • Elasticsearch version upgrade
  • Viewing a list of available Elasticsearch versions
  • Before a version upgrade
  • Updating the Elasticsearch version
  • Updating the Elasticsearch edition
  1. Step-by-step guides
  2. Clusters
  3. Updating parameters
  4. Updating the Elasticsearch version and edition

Updating the Elasticsearch version and edition

Written by
Yandex Cloud
Updated at May 13, 2025
  • Elasticsearch version upgrade
    • Viewing a list of available Elasticsearch versions
    • Before a version upgrade
    • Updating the Elasticsearch version
  • Updating the Elasticsearch edition

Warning

Yandex Managed Service for Elasticsearch is unavailable as of April 11, 2024.

You can create an OpenSearch cluster in Yandex Cloud as an alternative to Elasticsearch.

In the Managed Service for Elasticsearch cluster, you can update the version and update the edition of Elasticsearch.

To learn more about updates within a single version and host maintenance, see Maintenance.

Elasticsearch version upgradeElasticsearch version upgrade

You can update a Managed Service for Elasticsearch cluster to a newer Elasticsearch version.

Viewing a list of available Elasticsearch versionsViewing a list of available Elasticsearch versions

Management console
  1. In the management console, navigate to the folder page and select Managed Service for Elasticsearch.
  2. Select a cluster and click Edit.
  3. Open the list in the Version field.

Before a version upgradeBefore a version upgrade

Make sure this does not affect your applications:

  1. See Elasticsearch changelog for how upgrades may affect your applications.
  2. Try a version upgrade on a test cluster. You can deploy it from a backup of the main cluster.
  3. Create a backup of the main cluster directly before the version upgrade.

Updating the Elasticsearch versionUpdating the Elasticsearch version

Management console
CLI
Terraform
API
  1. In the management console, navigate to the folder page and select Managed Service for Elasticsearch.
  2. Select a cluster and click Edit.
  3. In the Version field, select the appropriate Elasticsearch version.
  4. Click Save.

If you do not have the Yandex Cloud (CLI) command line interface yet, install and initialize it.

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. Get a list of your Elasticsearch clusters:

    yc managed-elasticsearch cluster list
    
  2. Get information about the cluster you need and check the version in the config.version property:

    yc managed-elasticsearch cluster get <cluster_name_or_ID>
    
  3. Update the version:

    yc managed-elasticsearch cluster update <cluster_name_or_ID> --version <Elasticsearch_version>
    
  1. Open the current Terraform configuration file that defines your infrastructure.

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

    For a complete list of available Managed Service for Elasticsearch cluster configuration fields, see the Terraform provider documentation.

  2. To the Managed Service for Elasticsearch cluster description, add the config.version field or change its value if it is already there:

    resource "yandex_mdb_elasticsearch_cluster" "<cluster_name>" {
      ...
      config {
        version = "<Elasticsearch_version>"
      }
    }
    
  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.

    Time limits

    A Terraform provider sets the timeout for Managed Service for Elasticsearch cluster operations:

    • Creating a cluster, including by restoring one from a backup: 30 minutes.
    • Editing a cluster: 60 minutes.
    • Deleting a cluster: 15 minutes.

    Operations exceeding the set timeout are interrupted.

    How do I change these limits?

    Add the timeouts block to the cluster description, for example:

    resource "yandex_mdb_elasticsearch_cluster" "<cluster_name>" {
      ...
      timeouts {
        create = "1h30m" # 1 hour 30 minutes
        update = "2h"    # 2 hours
        delete = "30m"   # 30 minutes
      }
    }
    

To update a version, use the update REST API method for the Cluster resource or the ClusterService/Update gRPC API call and provide the following in the request:

  • Cluster ID in the clusterId parameter.

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

  • New Elasticsearch version in the configSpec.version parameter.

  • List of editable cluster configuration fields in the updateMask parameter (in this case, configSpec.version).

Warning

The API method will assign default values to all the parameters of the object you are modifying unless you explicitly provide them in your request. To avoid this, list the settings you want to change in the updateMask parameter as a single comma-separated string.

Updating the Elasticsearch editionUpdating the Elasticsearch edition

Note

As of June 13, 2022, the Gold edition has been discontinued in Managed Service for Elasticsearch clusters. You cannot switch to it from the Basic or Platinum edition. On July 6, 2022, all Gold edition clusters were automatically upgraded to Platinum.

You can change the Elasticsearch edition used by the cluster. Before you downgrade the edition, make sure that reduced functionality will not affect your applications.

Management console
CLI
Terraform
API
  1. In the management console, navigate to the folder page and select Managed Service for Elasticsearch.
  2. Select a cluster and click Edit.
  3. In the Edition field, select the Elasticsearch edition you need: Basic or Platinum.
  4. Click Save.

If you do not have the Yandex Cloud (CLI) command line interface yet, install and initialize it.

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. Get a list of your Elasticsearch clusters:

    yc managed-elasticsearch cluster list
    
  2. Get information about the cluster you need and check the edition in the config.edition property:

    yc managed-elasticsearch cluster get <cluster_name_or_ID>
    
  3. Update the edition:

    yc managed-elasticsearch cluster update <cluster_name_or_ID> \
       --edition <Elasticsearch_edition>
    

    Where --edition is the Elasticsearch edition, basic or platinum.

  1. Open the current Terraform configuration file that defines your infrastructure.

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

  2. Add the config.edition field to the Managed Service for Elasticsearch cluster description or edit it if the field already exists:

    resource "yandex_mdb_elasticsearch_cluster" "<cluster_name>" {
      ...
      config {
        edition = "<Elasticsearch_edition>"
        ...
      }
      ...
    }
    

    Where edition is the Elasticsearch edition, basic or platinum.

  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 the Terraform provider documentation.

Time limits

A Terraform provider sets the timeout for Managed Service for Elasticsearch cluster operations:

  • Creating a cluster, including by restoring one from a backup: 30 minutes.
  • Editing a cluster: 60 minutes.
  • Deleting a cluster: 15 minutes.

Operations exceeding the set timeout are interrupted.

How do I change these limits?

Add the timeouts block to the cluster description, for example:

resource "yandex_mdb_elasticsearch_cluster" "<cluster_name>" {
  ...
  timeouts {
    create = "1h30m" # 1 hour 30 minutes
    update = "2h"    # 2 hours
    delete = "30m"   # 30 minutes
  }
}

To update the Elasticsearch edition, use the update REST API method for the Cluster resource or the ClusterService/Update gRPC API call and provide the following in the request:

  • Cluster ID in the clusterId parameter.

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

  • New Elasticsearch edition in the configSpec.edition parameter.

  • List of editable cluster configuration fields in the updateMask parameter (in this case, configSpec.edition).

Warning

The API method will assign default values to all the parameters of the object you are modifying unless you explicitly provide them in your request. To avoid this, list the settings you want to change in the updateMask parameter as a single comma-separated string.

Was the article helpful?

Previous
Updating cluster settings
Next
Managing plugins
© 2025 Direct Cursus Technology L.L.C.