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 Apache Kafka®
  • Getting started
    • All guides
      • Information about existing clusters
      • Creating a cluster
      • Updating cluster settings
      • Apache Kafka® version upgrade
      • Managing disk space
      • Stopping and starting a cluster
      • Getting a list of cluster hosts
      • Getting the Apache Kafka® patch version
      • Migrating hosts to a different availability zone
      • Maintenance
      • Deleting a cluster
    • Managing topics
    • Managing users
    • Managing connectors
    • Kafka UI for Apache Kafka®
  • Access management
  • Pricing policy
  • Terraform reference
  • Yandex Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • Getting a list of maintenance jobs
  • Getting cluster maintenance logs
  • Postponing scheduled maintenance
  • Starting scheduled maintenance immediately
  • Configuring a maintenance window
  1. Step-by-step guides
  2. Clusters
  3. Maintenance

Apache Kafka® cluster maintenance

Written by
Yandex Cloud
Updated at February 6, 2026
  • Getting a list of maintenance jobs
  • Getting cluster maintenance logs
  • Postponing scheduled maintenance
  • Starting scheduled maintenance immediately
  • Configuring a maintenance window

You can manage maintenance of a Yandex Managed Service for Apache Kafka® cluster.

Getting a list of maintenance jobsGetting a list of maintenance jobs

Management console
  1. In the management console, navigate to the relevant folder.
  2. Go to Managed Service for Kafka.
  3. Click the name of your cluster and select the Technical maintenance tab.

To view maintenance jobs with a specific status, click Status above the maintenance list and select the status you want from the drop-down menu. To find a specific maintenance job, enter its ID or task name in the field above the list of maintenance sessions.

Getting cluster maintenance logsGetting cluster maintenance logs

Management console
  1. In the management console, navigate to the relevant folder.
  2. Go to Managed Service for Kafka.
  3. Click the name of your cluster and select the Technical maintenance tab.
  4. Click the ID of the maintenance job you need.
  5. Click Task logs.

Postponing scheduled maintenancePostponing scheduled maintenance

Maintenance jobs with the Planned status are scheduled for the date and time specified in the Start date column. You can reschedule them for a new date and time, if required.

Management console
CLI
REST API
gRPC API

To reschedule maintenance for a new date and time:

  1. In the management console, navigate to the relevant folder.
  2. Go to Managed Service for Kafka.
  3. Click the name of your cluster and select the Technical maintenance tab.
  4. Click next to the maintenance with the Planned status.
  5. In the drop-down menu, select Postpone.
  6. In the window that opens:
    • To postpone the maintenance until the next available window, click Next window and then Reschedule.
    • To reschedule maintenance for a specific UTC date and time, click Choose date (UTC), then select a new date and time and click Reschedule.

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 reschedule maintenance for a new date and time:

  1. See the description of the CLI command for rescheduling maintenance :

    yc managed-kafka cluster reschedule-maintenance --help
    
  2. Run this command:

    yc managed-kafka cluster reschedule-maintenance <cluster_name_or_ID> \
      --reschedule-type <reschedule_type> \
      --delayed-until <timestamp>
    

    Where:

    • reschedule-type: Reschedule type:

      • next-available-window: Next available window.
      • specific-time: Specific date and time.
    • delayed-until: Timestamp (do not use with the next-available-window reschedule type).

      The timestamp must be in one of the following formats:

      • RFC-3339.
      • HH:MM:SS.
      • Relative time to postpone maintenance for.

      Here are some examples: 2006-01-02T15:04:05Z, 15:04:05, 2h, or 3h30m ago.

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

To reschedule maintenance for a new date and time:

  1. Get an IAM token for API authentication.

  2. Save the token to an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  3. Call the Cluster.rescheduleMaintenance 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-kafka/v1/clusters/<cluster_ID>:rescheduleMaintenance' \
      --data '{
        "rescheduleType": <reschedule_type>,
        "delayedUntil": <timestamp>
      }'
    

    Where:

    • rescheduleType: Reschedule type:

      • NEXT_AVAILABLE_WINDOW: Next available window.
      • SPECIFIC_TIME: Specific date and time.
    • delayedUntil: Timestamp in RFC-3339 format, such as 2006-01-02T15:04:05Z.

      Do not use this option with the NEXT_AVAILABLE_WINDOW reschedule type.

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

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

To reschedule maintenance for a new date and time:

  1. Get an IAM token for API authentication.

  2. Save the token to an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  3. 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.

  4. Call the ClusterService.RescheduleMaintenance 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/kafka/v1/cluster_service.proto \
      -rpc-header "Authorization: Bearer $IAM_TOKEN" \
      -d '{
        "cluster_id": "<cluster_ID>",
        "reschedule_type": <reschedule_type>,
        "delayed_until": <timestamp>
      }' \
      mdb.api.cloud.yandex.net:443 \
      yandex.cloud.mdb.kafka.v1.ClusterService.RescheduleMaintenance
    

    Where:

    • reschedule_type: Reschedule type:

      • NEXT_AVAILABLE_WINDOW: Next available window.
      • SPECIFIC_TIME: Specific date and time.
    • delayedUntil: Timestamp in RFC-3339 format, such as 2006-01-02T15:04:05Z.

      Do not use this option with the NEXT_AVAILABLE_WINDOW reschedule type.

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

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

Starting scheduled maintenance immediatelyStarting scheduled maintenance immediately

You can start maintenance with the Planned status immediately, prior to the time specified in the Start date column.

Management console
CLI
REST API
gRPC API

To start scheduled maintenance immediately, do the following:

  1. In the management console, navigate to the relevant folder.
  2. Go to Managed Service for Kafka.
  3. Click the name of your cluster and select the Technical maintenance tab.
  4. Click next to the maintenance job.
  5. In the drop-down menu, select Carry out now.

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 start scheduled maintenance immediately, do the following:

  1. See the description of the CLI command for rescheduling maintenance :

    yc managed-kafka cluster reschedule-maintenance --help
    
  2. Run this command using the immediate reschedule type:

    yc managed-kafka cluster reschedule-maintenance <cluster_name_or_ID> \
      --reschedule-type immediate
    

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

To start scheduled maintenance immediately, do the following:

  1. Get an IAM token for API authentication.

  2. Save the token to an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  3. Call the Cluster.rescheduleMaintenance 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-kafka/v1/clusters/<cluster_ID>:rescheduleMaintenance' \
      --data '{
        "rescheduleType": "IMMEDIATE"
      }'
    

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

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

To start scheduled maintenance immediately, do the following:

  1. Get an IAM token for API authentication.

  2. Save the token to an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  3. 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.

  4. Call the ClusterService.RescheduleMaintenance 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/kafka/v1/cluster_service.proto \
      -rpc-header "Authorization: Bearer $IAM_TOKEN" \
      -d '{
        "cluster_id": "<cluster_ID>",
        "reschedule_type": "IMMEDIATE"
      }' \
      mdb.api.cloud.yandex.net:443 \
      yandex.cloud.mdb.kafka.v1.ClusterService.RescheduleMaintenance
    

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

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

Configuring a maintenance windowConfiguring a maintenance window

By default, maintenance can run at any time. To set a specific maintenance window, specify the day of the week and time interval. For example, you can schedule it for periods of lowest cluster load.

Warning

A scheduled maintenance job will be canceled automatically if it falls outside the specified interval.

Management console
CLI
Terraform
REST API
gRPC API
  1. In the management console, navigate to the relevant folder.
  2. Go to Managed Service for Kafka.
  3. Click the name of your cluster and select the Technical maintenance tab.
  4. Click Configure the maintenance window.
  5. In the window that opens:
    • To allow maintenance at any time, select arbitrary, which is the default option.
    • To set a specific window, select by schedule and specify the day of the week and UTC time interval.

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.

  1. See the description of the CLI command for updating the maintenance window:

    yc managed-kafka cluster update --help
    
  2. Run this command:

    yc managed-kafka cluster update <cluster_name_or_ID> \
      --maintenance-window type=<maintenance_type>,`
                          `day=<day_of_week>,`
                          `hour=<hour>
    

    Where type is the maintenance type:

    • anytime: At any time (default).
    • weekly: On a schedule. For this value, also specify the following:
      • day: Day of week, i.e., MON, TUE, WED, THU, FRI, SAT, or SUN.
      • hour: Hour of day (UTC), from 1 to 24.

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

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

    Learn how to create this file in Creating a cluster.

    For a complete list of Managed Service for Apache Kafka® cluster configuration fields you can update, see this Terraform provider guide.

  2. To set up the maintenance window that will also apply to stopped clusters, add the maintenance_window section to the cluster description:

    resource "yandex_mdb_kafka_cluster" "<cluster_name>" {
      ...
      maintenance_window {
        type = <maintenance_type>
        day  = <day_of_week>
        hour = <hour>
      }
      ...
    }
    

    Where:

    • type: Maintenance type. The possible values include:
      • ANYTIME: Anytime
      • WEEKLY: On a schedule
    • day: Day of week for the WEEKLY type, i.e., MON, TUE, WED, THU, FRI, SAT, or SUN.
    • hour: UTC hour for the WEEKLY type, from 1 to 24.
  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.

    Timeouts

    The Terraform provider limits the time for all operations with the Managed Service for Apache Kafka® cluster to 60 minutes.

    Operations exceeding the timeout are aborted.

    How do I change these limits?

    Add the timeouts section to your cluster description, such as the following:

    resource "yandex_mdb_kafka_cluster" "<cluster_name>" {
      ...
      timeouts {
        create = "1h30m" # 1 hour 30 minutes
        update = "2h"    # 2 hours
        delete = "30m"   # 30 minutes
      }
    }
    
  1. Get an IAM token for API authentication.

  2. Save the token to an environment variable:

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

    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.

    curl \
      --request PATCH \
      --header "Authorization: Bearer $IAM_TOKEN" \
      --header "Content-Type: application/json" \
      --url 'https://mdb.api.cloud.yandex.net/managed-kafka/v1/clusters/<cluster_ID>' \
      --data '{
        "updateMask": "maintenanceWindow",
        "maintenanceWindow": {
          "weeklyMaintenanceWindow": {
            "day": "<day_of_week>",
            "hour": "<hour>"
          }
        }
      }'
    

    Where:

    • updateMask: Comma-separated string of settings you want to update.

      Here, we provide only one setting.

    • maintenanceWindow: Maintenance window settings, including for stopped clusters. The possible values are:

      • anytime: Maintenance can run at any time.

      • weeklyMaintenanceWindow: Maintenance runs once a week on the specified day and at the specified time:

        • day: Day of week in DDD format, i.e., MON, TUE, WED, THU, FRI, SAT, or SUN.
        • hour: Time of day (UTC) in HH format, from 1 to 24.

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

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

  1. Get an IAM token for API authentication.

  2. Save the token to an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  3. 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.

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

    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 update_mask parameter as an array of paths[] strings.

    Format for listing settings
    "update_mask": {
        "paths": [
            "<setting_1>",
            "<setting_2>",
            ...
            "<setting_N>"
        ]
    }
    
    grpcurl \
      -format json \
      -import-path ~/cloudapi/ \
      -import-path ~/cloudapi/third_party/googleapis/ \
      -proto ~/cloudapi/yandex/cloud/mdb/kafka/v1/cluster_service.proto \
      -rpc-header "Authorization: Bearer $IAM_TOKEN" \
      -d '{
        "cluster_id": "<cluster_ID>",
        "update_mask": {
          "paths": ["maintenance_window"]
        },
        "maintenance_window": {
          "weekly_maintenance_window": {
            "day": "<day_of_week>",
            "hour": "<hour>"
          }
        }
      }' \
      mdb.api.cloud.yandex.net:443 \
      yandex.cloud.mdb.kafka.v1.ClusterService.Update
    

    Where:

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

      Here, we provide only one setting.

    • maintenance_window: Maintenance window settings, including for stopped clusters. The possible values are:

      • anytime: Maintenance can run at any time.

      • weekly_maintenance_window: Maintenance runs once a week on the specified day and at the specified time:

        • day: Day of week in DDD format, i.e., MON, TUE, WED, THU, FRI, SAT, or SUN.
        • hour: Time of day (UTC) in HH format, from 1 to 24.

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

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

Was the article helpful?

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