--- title: "节点不应连接 (node_should_not_connect_exception) 错误排查与解决" date: 2026-01-11 lastmod: 2026-01-11 description: "node_should_not_connect_exception 表示节点之间的连接被配置规则阻止,需要检查节点配置和集群设置中的排除规则。" tags: ["节点", "节点连接", "节点发现"] summary: "为什么这个错误发生 # node_should_not_connect_exception 表示节点之间的连接被配置规则阻止。 如何修复 # 1. 检查节点配置 # 验证节点发现和连接配置。 2. 检查集群设置 # GET /_cluster/settings 3. 移除连接排除规则 # PUT /_cluster/settings { "persistent": { "cluster.routing.allocation.exclude._name": null } } 预防措施 # 正确配置节点发现 " --- ## 为什么这个错误发生 `node_should_not_connect_exception` 表示节点之间的连接被配置规则阻止。 ## 如何修复 ### 1. 检查节点配置 验证节点发现和连接配置。 ### 2. 检查集群设置 ```bash GET /_cluster/settings ``` ### 3. 移除连接排除规则 ```bash PUT /_cluster/settings { "persistent": { "cluster.routing.allocation.exclude._name": null } } ``` ### 预防措施 - 正确配置节点发现