---
title: "Recreate load balancer instance"
sidebar_label: "Recreate load balancer instance"
sidebar_position: 4
description: "How to recreate a load balancer instance"
---

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

# Recreate load balancer instance

You can [recreate a load balancer instance](#failover-balancer-instance) if:

* you have changed network settings in the subnet where the load balancer is running, and you need to apply the new settings to the load balancer;
* you have changed load balancer settings, and the [instance configuration status](/cloud-servers/load-balancers/manage/balancer-statuses.mdx#balancer-provisioning-statuses) has changed to `ERROR`.

When you recreate an instance, a new instance is created, traffic is switched to it, and then the old instance is deleted. If the load balancer has redundancy, the reserve instance is recreated first, followed by the primary instance.

Recreation can take up to five seconds; during this time, the load balancer will not accept traffic. All load balancer settings, rules, and target groups will be saved.

## Recreate load balancer instance \{#failover-balancer-instance}

<Tabs queryString="failover-balancer-instance">
  <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 /> load balancer menu, select **Recreate load balancer instance**.
    4. Click **Recreate**.

       When the [instance configuration status](/cloud-servers/load-balancers/manage/balancer-statuses.mdx#balancer-provisioning-statuses) changes to `ACTIVE`, recreation is complete. If the instance configuration status has changed to `ERROR`, one or both instances have not been recreated, and the old instances continue to run with the previous settings. For diagnostics, [create a ticket](https://my.selectel.ru/tickets/create).
  </TabItem>

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

    1. [Open OpenStack CLI](/cloud-servers/tools/openstack-cli/).

    2. Recreate the instance:

       ```bash
       openstack loadbalancer failover <loadbalancer>
       ```

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

       When the [instance configuration status](/cloud-servers/load-balancers/manage/balancer-statuses.mdx#balancer-provisioning-statuses) changes to `ACTIVE`, recreation is complete. If the instance configuration status has changed to `ERROR`, one or both instances have not been recreated, and the old instances continue to run with the previous settings. For diagnostics, [create a ticket](https://my.selectel.ru/tickets/create).
  </TabItem>
</Tabs>

<Formbricks />
