Skip to content

Set default node.max_local_storage_nodes to 1 #8932

Closed
@jordansissel

Description

@jordansissel

A number of users over the years have been punished by unintentionally running two ES nodes simultaneously on the same server and then losing data because of mixed and lost data between nodes/0 and nodes/1 directories.

One such example: https://groups.google.com/d/msg/logstash-users/1JKLLa4YUw4/g0vcCcxmeiMJ

This occurs most frequently by accident, I think, under some weird situation where someone is running Elasticsearch, intends to restart it, and either has ES still running when the new node comes up or has some race condition during restart that causes 2 nodes to exist temporarily so the nodes/0 directory is locked.

It would be very helpful for new users and operators to have node.max_local_storage_nodes default to 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions