Tencent / Tendis

Tendis is a high-performance distributed storage system fully compatible with the Redis protocol.
http://tendis.cn
Other
2.92k stars 319 forks source link

cluster_known_nodes值错误 #238

Open wrizyy450 opened 1 year ago

wrizyy450 commented 1 year ago

当前是一个24节点的集群,通过cluster info命令突然看到cluster_known_nodes显示为25,持续反复执行cluster info命令会偶尔看到显示为24;查看日志发现,集群在反复地对一个早已缩容并下线的节点,进行delete node和add node操作。不知这个有什么办法可以解决吗

takenliu commented 1 year ago

所有节点都执行cluster forget命令,需要在1分钟以内完成。

wrizyy450 commented 1 year ago

所有节点都执行cluster forget命令,需要在1分钟以内完成。

目前无法锁定node id,日志中显示每次delete的都是旧的id,立马add了一个新的id,尽管ip:port是一样的 c917a4a2-2b15-44f2-8125-0e3fa266d074

takenliu commented 1 year ago

qq群里面联系我,qq群:679757938。

takenliu commented 1 year ago

经追查,是其中一个节点还持有“10...* : 18907”这个node信息,在此节点上面执行cluster forget [nodename]命令就可以了。 注意:日志中async connecting with node [nodename]中的nodename是临时的,调用cluster forget [nodename]命令的时候,要用原来的nodename。