---
title: "Manage load balancer operation"
sidebar_label: "Manage load balancer operation"
sidebar_position: 1
description: "How to turn on and turn off a load balancer"
---

import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import MoreVerticalIcon from '@selectel/docux/icons/more-vertical'
import {TabItemLabel} from '@selectel/docux/components'
import Formbricks from '@theme/MDXComponents/Formbricks'

# Manage load balancer operation

You can manage load balancer operation: [turn off](#turn-off-load-balancer) and [turn on](#turn-on-load-balancer).

## Turn off load balancer \{#turn-off-load-balancer}

If a load balancer is turned off, you are still charged for it.

<Tabs queryString="turn-off-load-balancer">
  <TabItem value="panel" default>
    <TabItemLabel>
      Control panel
    </TabItemLabel>

    1. In the [Control panel](https://my.selectel.ru/vpc/default/lbaas/load-balancers/), on the top menu, click **Products** and select **Cloud Servers**.
    2. Go to the **Load Balancers** section → **Load Balancers** tab.
    3. In the <MoreVerticalIcon /> balancer menu, select **Turn Off Balancer**. The balancer will switch to the `OFFLINE`.
  </TabItem>

  <TabItem value="openstack">
    <TabItemLabel>
      OpenStack CLI
    </TabItemLabel>

    1. [Open the OpenStack CLI](/cloud-servers/tools/openstack-cli/).
    2. Turn off the load balancer:

       ```bash
       openstack loadbalancer set --disable <loadbalancer>
       ```

       Specify `<loadbalancer>` — the balancer ID or name. You can view the list using the `openstack loadbalancer list`.

       The balancer will switch to the status `OFFLINE`.
  </TabItem>
</Tabs>

## Turn on load balancer \{#turn-on-load-balancer}

<Tabs queryString="turn-on-load-balancer">
  <TabItem value="panel" default>
    <TabItemLabel>
      Control panel
    </TabItemLabel>

    1. In the [Control panel](https://my.selectel.ru/vpc/default/lbaas/load-balancers/), on the top menu, click **Products** and select **Cloud Servers**.
    2. Go to the **Load Balancers** section → **Load Balancers** tab.
    3. In the <MoreVerticalIcon /> balancer menu, select **Turn On Balancer**. The balancer will switch to the `ACTIVE`.
  </TabItem>

  <TabItem value="openstack">
    <TabItemLabel>
      OpenStack CLI
    </TabItemLabel>

    1. [Open the OpenStack CLI](/cloud-servers/tools/openstack-cli/).
    2. Turn on the load balancer:

       ```bash
       openstack loadbalancer set --enable <loadbalancer>
       ```

       Specify `<loadbalancer>` — the balancer ID or name. You can view the list using the `openstack loadbalancer list`.

       The balancer will switch to the status `ACTIVE`.
  </TabItem>
</Tabs>

<Formbricks />
