# 集群数据均衡时，节点离开集群

**URL:** <https://discuss.elastic.co/t/topic/354685>\
**Category:** 中文提问与讨论\
**Created:** [March 5, 2024, 2:40am UTC](https://discuss.elastic.co/t/topic/354685 "2024-03-05T02:40:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lianmeng0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lianmeng0/32/121935_2.png) [@lianmeng0](https://discuss.elastic.co/u/lianmeng0)\
**Post date:** [March 5, 2024, 2:40am UTC](https://discuss.elastic.co/t/topic/354685/1 "2024-03-05T02:40:41Z")

</div>

集群使用的是8.7.1版本es，每当集群产生数据均衡时，总会有数据节点被master节点判断因滞后而被移除集群，从而导致集群状态变更为黄色。以下是日志：

[2024-03-04T11:08:54,159][INFO][o.e.c.c.C.CoordinatorPublication] [masternode-3] after [10s] publication of cluster state version [260551] is still waiting for {datanode-80}{BDnDFGYTQF-j0Q4Rwqpcwg}{2B\_y39qqT7mNC2RgOHEu3Q}{datanode-80}{10.10.7.95}{10.10.7.95:9304}{dr}{8.7.1}{xpack.installed=true} [SENT\_APPLY\_COMMIT]  
[2024-03-04T11:10:14,162][WARN][o.e.c.c.C.CoordinatorPublication] [masternode-3] after [1.5m] publication of cluster state version [260551] is still waiting for {datanode-80}{BDnDFGYTQF-j0Q4Rwqpcwg}{2B\_y39qqT7mNC2RgOHEu3Q}{datanode-80}{10.10.7.95}{10.10.7.95:9304}{dr}{8.7.1}{xpack.installed=true} [SENT\_APPLY\_COMMIT]  
[2024-03-04T11:10:24,172][INFO][o.e.c.c.C.CoordinatorPublication] [masternode-3] after [10s] publication of cluster state version [260552] is still waiting for {datanode-80}{BDnDFGYTQF-j0Q4Rwqpcwg}{2B\_y39qqT7mNC2RgOHEu3Q}{datanode-80}{10.10.7.95}{10.10.7.95:9304}{dr}{8.7.1}{xpack.installed=true} [SENT\_APPLY\_COMMIT]  
[2024-03-04T11:11:44,163][WARN][o.e.c.c.LagDetector] [masternode-3] node [{datanode-80}{BDnDFGYTQF-j0Q4Rwqpcwg}{2B\_y39qqT7mNC2RgOHEu3Q}{datanode-80}{10.10.7.95}{10.10.7.95:9304}{dr}{8.7.1}{xpack.installed=true}] is lagging at cluster state version [260550], although publication of cluster state version [260551] completed [1.5m] ago  
[2024-03-04T11:11:44,176][WARN][o.e.c.c.C.CoordinatorPublication] [masternode-3] after [1.5m] publication of cluster state version [260552] is still waiting for {datanode-80}{BDnDFGYTQF-j0Q4Rwqpcwg}{2B\_y39qqT7mNC2RgOHEu3Q}{datanode-80}{10.10.7.95}{10.10.7.95:9304}{dr}{8.7.1}{xpack.installed=true} [SENT\_APPLY\_COMMIT]  
[2024-03-04T11:11:44,185][INFO][o.e.c.r.a.AllocationService] [masternode-3] current.health="YELLOW" message="Cluster health status changed from [GREEN] to [YELLOW] (reason: [{datanode-80}{BDnDFGYTQF-j0Q4Rwqpcwg}{2B\_y39qqT7mNC2RgOHEu3Q}{datanode-80}{10.10.7.95}{10.10.7.95:9304}{dr}{8.7.1} reason: lagging])." previous.health="GREEN" reason="{datanode-80}{BDnDFGYTQF-j0Q4Rwqpcwg}{2B\_y39qqT7mNC2RgOHEu3Q}{datanode-80}{10.10.7.95}{10.10.7.95:9304}{dr}{8.7.1} reason: lagging"  
[2024-03-04T11:11:44,230][INFO][o.e.c.s.MasterService] [masternode-3] node-left[{datanode-80}{BDnDFGYTQF-j0Q4Rwqpcwg}{2B\_y39qqT7mNC2RgOHEu3Q}{datanode-80}{10.10.7.95}{10.10.7.95:9304}{dr}{8.7.1} reason: lagging], term: 11, version: 260553, delta: removed {{datanode-80}{BDnDFGYTQF-j0Q4Rwqpcwg}{2B\_y39qqT7mNC2RgOHEu3Q}{datanode-80}{10.10.7.95}{10.10.7.95:9304}{dr}{8.7.1}}  
[2024-03-04T11:11:44,455][INFO][o.e.c.s.ClusterApplierService] [masternode-3] removed {{datanode-80}{BDnDFGYTQF-j0Q4Rwqpcwg}{2B\_y39qqT7mNC2RgOHEu3Q}{datanode-80}{10.10.7.95}{10.10.7.95:9304}{dr}{8.7.1}}, term: 11, version: 260553, reason: Publication{term=11, version=260553}  
[2024-03-04T11:11:44,457][INFO][o.e.c.r.DelayedAllocationService] [masternode-3] scheduling reroute for delayed shards in [59.7s] (37 delayed shards)  
[2024-03-04T11:11:44,458][INFO][o.e.c.c.NodeLeftExecutor] [masternode-3] node-left: [{datanode-80}{BDnDFGYTQF-j0Q4Rwqpcwg}{2B\_y39qqT7mNC2RgOHEu3Q}{datanode-80}{10.10.7.95}{10.10.7.95:9304}{dr}{8.7.1}] with reason [lagging]

还请各位大神分析分析(不能够升级处理)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 2, 2024, 2:41am UTC](https://discuss.elastic.co/t/topic/354685/2 "2024-04-02T02:41:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
