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 Application Load Balancer
  • Getting started
    • All guides
    • Creating Application Load Balancer infrastructure through a wizard
      • Creating an L7 load balancer
      • Editing an L7 load balancer
      • Getting information about an L7 load balancer
      • Viewing L7 load balancer statistics
      • Setting up alerts
      • Viewing L7 load balancer logs
      • Setting up L7 load balancer logging
      • Getting a log group ID of an L7 load balancer
      • Stopping and starting an L7 load balancer
      • Moving a VM to a target group in a different availability zone
        • Allowing and denying availability zone shutdown
        • Enabling and disabling an availability zone
      • Deleting an L7 load balancer
    • Viewing service resource operations
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • L7 load balancer logs
  • Release notes

In this article:

  • Enabling a zonal shift
  • Viewing zonal shift off time
  • Disabling a zonal shift
  • See also
  1. Step-by-step guides
  2. L7 load balancers
  3. Availability zone management
  4. Enabling and disabling an availability zone

Enabling and disabling a zonal shift

Written by
Yandex Cloud
Updated at January 26, 2026
  • Enabling a zonal shift
  • Viewing zonal shift off time
  • Disabling a zonal shift
    • See also

If an availability zone is under maintenance or fails, Yandex Cloud technicians may temporarily disable that zone.

You can also manually disable one or more availability zones to address the following scenarios:

  • Reducing load during localized issues, e.g., after a faulty app release on your backend or an incident caused by high traffic or misconfiguration. Temporarily disabling the affected zone helps prevent service disruption or quickly restore app functionality for your users.

  • Testing the resilience of your load balancer and traffic failover mechanisms. This way, you can proactively identify potential weaknesses, apply fixes, and optimize your load balancer settings in advance.

Enabling a zonal shiftEnabling a zonal shift

Warning

If you are using a network or an L7 load balancer in combination with an instance group with autoscaling, before disabling a zone in the load balancer, first, disable this zone for the instance group. Otherwise, the instance group will continue creating instances in a zone which does not receive traffic.

Management console
CLI
API
  1. In the management console, navigate to the folder containing your L7 load balancer.

  2. Go to Application Load Balancer.

  3. Select your L7 load balancer.

  4. On the Overview page, under Allocation, click Set up zone locks.

  5. Enable a zonal shift for one or more zones.

  6. Optionally, to set auto-off time for the zonal shift, activate Disable block through and specify a value from 1m to 72h. If no time is set, the zonal shift will be on until you disable it manually.

  7. Click Save.

Your load balancer will start shifting traffic away from inactive availability zones to other zones.

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. View the command description:

    yc application-load-balancer load-balancer disable-zones --help
    
  2. To start redistributing traffic, enable a zonal shift and specify its duration:

    yc application-load-balancer load-balancer disable-zones \
      <load_balancer_name_or_ID> \
      --zones <availability_zones>
      --duration <zonal_shift_duration>
    

    Where:

    • <load_balancer_name_or_ID>: Load balancer ID or name.

    • --zones: Availability zones to shift traffic away from, separated by commas.

    • --duration: Zonal shift duration from 1m to 72h.

      After this time, the zone will automatically recover. If this parameter is not set, the zonal shift will be on until you disable it manually.

    Here is an example:

    yc application-load-balancer load-balancer disable-zones \
      my-balancer \
      --zones ru-central1-a \
      --duration 1h
    

    Result:

    id: ds70q425egoe********
    name: my-balancer
    ...
    allocation_policy:
      locations:
        - zone_id: ru-central1-a
          subnet_id: e2lptlobccu6********
          zonal_shift_active: true
          zonal_traffic_disabled: true
        - zone_id: ru-central1-b
          subnet_id: e9bo5ir5prfi********
    ...
    

To enable a zonal shift, use the DisableZones REST API method for the LoadBalancer resource or the LoadBalancerService/DisableZones gRPC API call.

Viewing zonal shift off timeViewing zonal shift off time

Management console
  1. In the management console, select the folder with your load balancer.

  2. Go to Application Load Balancer and select the load balancer.

  3. Under Allocation, next to the availability zone, view its status.

    If the zonal shift duration has been set, you will see the end time next to the zone.

Disabling a zonal shiftDisabling a zonal shift

Warning

If you are using a network or an L7 load balancer in combination with an instance group with autoscaling, before enabling a zone in the load balancer, first, enable this zone for the instance group to distribute its instances across the zones.

Management console
CLI
API
  1. In the management console, navigate to the folder containing your L7 load balancer.
  2. Go to Application Load Balancer.
  3. Select your L7 load balancer.
  4. On the Overview page, under Allocation, click Set up zone locks.
  5. Disable the zonal shift.
  6. Click Save.

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. View the description of the command for disabling a zonal shift:

    yc application-load-balancer load-balancer enable-zones --help
    
  2. Disable a zonal shift:

    yc application-load-balancer load-balancer enable-zones \
      <load_balancer_name_or_ID> \
      --zones <availability_zones>
    

    Here is an example:

    yc application-load-balancer load-balancer enable-zones \
      my-balancer \
      --zones ru-central1-a
    

    Result:

    id: ds70q425egoe********
    name: my-balancer
    ...
    allocation_policy:
      locations:
        - zone_id: ru-central1-a
          subnet_id: e9bo5ir5prfi********
        - zone_id: ru-central1-b
          subnet_id: e2lptlobccu6******** 
    ...
    

To disable a zonal shift, use the EnableZones REST API method for the LoadBalancer resource or the LoadBalancerService/EnableZones gRPC API call.

Note

Previously, the start-zonal-shift and cancel-zonal-shift CLI commands and the StartZonalShift and CancelZonalShift API methods were used to enable and disable zonal shifts. They are now deprecated and will soon be removed.

See alsoSee also

  • Disabling and enabling zonal shifts for a Yandex Compute Cloud instance group
  • Disabling and enabling zonal shifts in Yandex Network Load Balancer

Was the article helpful?

Previous
Allowing and denying availability zone shutdown
Next
Deleting an L7 load balancer
© 2026 Direct Cursus Technology L.L.C.