node_not_connected_exception: Node is not connected(节点未连接)
Elasticsearch含义
某个节点当前未与其需要通信的另一个节点建立连接。由于集群内部(传输层)连接已断开,请求无法转发到目标节点。
原因
网络中断或丢包、目标节点崩溃/重启、防火墙/端口阻断(默认传输端口 9300)、节点因 GC 停顿暂时无响应,或 DNS/主机解析问题。在滚动重启期间可能暂时出现。
解决方法
检查集群和节点健康状况:用 GET _cluster/health 和 GET _cat/nodes?v 查看缺少的是哪个节点。确认节点之间的网络访问以及传输端口(9300)的防火墙规则。检查受影响节点的日志中是否有崩溃、GC 停顿或 OOM。检查网络稳定性以及 discovery/seed host 配置。
同一数据库的其他条目
- shard_not_found_exceptionShard not found(未找到分片)
- not_x_content_exceptionCompressor detection error / body is not valid content(压缩格式检测错误/请求体不是有效内容)
- document_source_missing_exceptionDocument source is missing(文档 source 不存在)
- receive_timeout_transport_exceptionRequest timed out waiting for a response from another node(等待另一节点响应时请求超时)
- routing_missing_exceptionRouting value is required for this document(此文档需要 routing 值)
- too_many_buckets_exceptionTrying to create too many buckets(试图创建过多的桶)
- shard_lock_obtain_failed_exceptionObtaining shard lock timed out(获取分片锁超时)