码迷,mamicode.com
首页 > 其他好文 > 详细

etcd频繁选举leader

时间:2020-07-12 20:27:52      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:diff   解决   des   incr   beat   rod   name   http   超时   

etcd频繁选举leader

集群中etcd出现报警

Alert Name: A high number of leader changes within the etcd cluster are happening
Severity: warning
Cluster Name: shdmz-prod-diamond (ID: c-n6wc4)
Namespace: cattle-prometheus
Expression: increase(etcd_server_leader_changes_seen_total[1h])>3
Description: Threshold Crossed: datapoint value 4.067796610169491 was greater than to the threshold (3) for (3m)

 日志中发现的问题,还有类似心跳检测超时的情况

2020-07-08 11:32:11.730958 W | rafthttp: the clock difference against peer db40725e6f94d8e3 is too high [13.717094955s > 1s] (prober "ROUND_TRIPPER_RAFT_MESSAGE")

 解决方式

1、集群中有某些机器时间不同步

2、扩大心跳检测时长

- --election-timeout=5000
- --heartbeat-interval=500

 

etcd频繁选举leader

标签:diff   解决   des   incr   beat   rod   name   http   超时   

原文地址:https://www.cnblogs.com/Wshile/p/13289641.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!