<commit_before>[[modules-gateway]]
== Local Gateway

The local gateway module stores the cluster state and shard data across full
cluster restarts.

 The following _static_ settings, which must be set on every master node,
  control how long a freshly elected master should wait before it tries to
  recover the cluster state and the cluster's data:

`gateway.expected_nodes`::

    The number of (data or master) nodes that are expected to be in the cluster.
    Recovery of local shards will start as soon as the expected number of
    nodes have joined the cluster. Defaults to `0`

`gateway.expected_master_nodes`::

    The number of master nodes that are expected to be in the cluster.
    Recovery of local shards will start as soon as the expected number of
    master nodes have joined the cluster. Defaults to `0`

`gateway.expected_data_nodes`::

    The number of data nodes that are expected to be in the cluster.<commit_msg>[Docs] Fix wrong indent in gateway documentation (#26501)<commit_after>[[modules-gateway]]
== Local Gateway

The local gateway module stores the cluster state and shard data across full
cluster restarts.

The following _static_ settings, which must be set on every master node,
control how long a freshly elected master should wait before it tries to
recover the cluster state and the cluster's data:

`gateway.expected_nodes`::

    The number of (data or master) nodes that are expected to be in the cluster.
    Recovery of local shards will start as soon as the expected number of
    nodes have joined the cluster. Defaults to `0`

`gateway.expected_master_nodes`::

    The number of master nodes that are expected to be in the cluster.
    Recovery of local shards will start as soon as the expected number of
    master nodes have joined the cluster. Defaults to `0`

`gateway.expected_data_nodes`::

    The number of data nodes that are expected to be in the cluster.
{'fraction_non_alphanumeric': 0.04543080939947781, 'fraction_numerical': 0.004699738903394256, 'mean_word_length': 4.028871391076115, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4426443', 'n_tokens_mistral': 504, 'n_tokens_neox': 482, 'n_words': 282}