目前,当我删除一个节点(例如ip-2)时,我只需拨打HazelcastInstance.shutdown()
。但我仍然在日志中看到很多警告,例如
[ip-1]:5701 [xxx] [3.3.3] Removing connection to endpoint Address[ip-2]:5701 Cause => java.net.SocketException {Connection refused to address /ip-2:5701}, Error-Count: 5
[ip-1]:5701 [xxx] [3.3.3] This node does not have a connection to Member [ip-2]:5701
[ip-1]:5701 [xxx] [3.3.3] hz._hzInstance_1_xxx.IO.thread-in-0 Closing socket to endpoint Address[ip-2]:5701, Cause:java.io.EOFException: Remote socket closed!
是否有更合适的方法从群集中删除节点?
答案 0 :(得分:0)
这是推荐的方法。我猜测日志有点令人困惑。