---
metadata:
  - name: generator
    content: Diplodoc Platform v5.61.1
alternate:
  - https://ydb.tech/docs/en/devops/concepts/selfheal.md
  - https://ydb.tech/docs/ru/devops/concepts/selfheal.md
  - href: https://ydb.tech/docs/en/devops/concepts/selfheal.md
    type: text/markdown
    title: Markdown version
  - href: https://ydb.tech/docs/en/llms.txt
    rel: describedby
sourcePath: en/core/devops/concepts/selfheal.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/en/llms.txt

# SelfHeal

SelfHeal automatically restores the fault tolerance of five types of YDB cluster objects:

1. [Dynamic storage groups](https://ydb.tech/docs/en/concepts/glossary.md#dynamic-group).
2. The [static storage group](https://ydb.tech/docs/en/concepts/glossary.md#static-group).
3. [State Storage](https://ydb.tech/docs/en/concepts/glossary.md#state-storage) replicas.
4. [Board](https://ydb.tech/docs/en/concepts/glossary.md#board) replicas.
5. [SchemeBoard](https://ydb.tech/docs/en/concepts/glossary.md#scheme-board) replicas.

These objects are handled by three mechanisms: SelfHeal for dynamic storage groups, a separate SelfHeal for the static storage group, and a shared SelfHeal for State Storage, Board, and SchemeBoard. The documentation groups these mechanisms into two sections: Storage SelfHeal (dynamic and static groups) and Metadata Distribution SelfHeal (State Storage, Board, and SchemeBoard).

When a node or disk fails, SelfHeal waits for the failure to persist before starting relocation. If the node or disk recovers before the mechanism is triggered, relocation does not start. For disks, the default waiting time is about one hour.

{% note info %}

SelfHeal for dynamic storage groups does not depend on the configuration version. SelfHeal for the static group and metadata distribution subsystems is available only with [configuration V2](https://ydb.tech/docs/en/devops/configuration-management/configuration-v2/config-overview.md) and distributed configuration enabled. Automatic static group management must also be allowed with the `automatic_static_group_management` parameter.

{% endnote %}

For more details about the mechanisms:

- [Storage SelfHeal](https://ydb.tech/docs/en/devops/concepts/selfheal-storage.md)
- [Metadata Distribution SelfHeal](https://ydb.tech/docs/en/devops/concepts/selfheal-metadata-distribution.md)
