node.max_local_storage_nodes 的默认值是 1
在 Elasticsearch 中,
node.max_local_storage_nodes
的默认值是 1。参数说明
node.max_local_storage_nodes
用于限制在同一个数据路径(path.data
)下可以运行的 Elasticsearch 节点数量。默认情况下,Elasticsearch 配置为防止多个节点共享同一数据路径,以避免数据丢失或冲突。如果需要在同一个机器上运行多个节点(例如在开发环境中),可以将此值设置为大于 1 的正整数。例如:
yaml
node.max_local_storage_nodes: 3
但这在生产环境中是不推荐的,因为可能会导致数据丢失
时来天地皆同力,运去英雄不自由