为什么Hazelcast连接到另一个主机



我正在主机10.99.248.130上启动Hazelcast进程,为什么它要连接到主机10.99.248.138?

2020-10-22 21:14:29124[ServerService线程池--84]信息com.hazelcast.system-[10.99.248.130]:5701[dev][3.75]版权所有(c)2008-2016,hazelcast,股份有限公司保留所有权利。2020-10-22 21:14:29124[ServerService线程池--84]INFO com.hazelcast.system-[10.99.248.130]:5701[dev][3.7.5]配置的hazelcast序列化版本:12020-10-22 21:14:29797[ServerService线程池--84]信息com.hazecast.spi.impl.operationservice.impl.BackpressureRegulator-[10.99.248.130]:5701[dev][3.7.5]背压已禁用2020-10-22 21:14:31243[ServerService线程池--84]信息com.hazecast.instance.Node-[10.99.248.130]:5701[dev][3.7.5]正在创建TcpIpJoiner2020-10-22 21:14:31764[ServerService线程池--84]信息com.hazecast.spi.impl.operationexecutor.impl.OperationExecutiorImpl-[10.99.248.130]:5701[dev][3.7.5]启动2个分区线程2020-10-22 21:14:31773[ServerService线程池--84]信息com.hazecast.spi.impl.operationexecutor.impl.[10.99.248.130]:5701[dev][3.7.5]启动3个通用线程(1个专用于优先级任务)2020-10-22 21:14:31805[ServerService线程池--84]信息com.hazecast.core.LifecycleService-[10.99.248.130]:5701[dev][3.7.5][10.99.288.130]:570正在启动2020-10-22 21:14:31811[ServerService线程池-84]INFO com.hazecast.nio.tcp.nonblocking.NonBlockingIOThreadingModel-[10.99.248.130]:5701[dev][3.7.5]配置了Non-Blocking IO线程模型的TcpIpConnectionManager:3个输入线程和3个输出线程2020-10-22 21:14:31905[hz.SMP.cached.thread-3]信息com.hazecast.nio.tcp.InitConnectionTask-[10.99.248.130]:5701[dev][3.7.5]连接到/10.99.248.138:5702,超时:0,绑定任意:true2020-10-22 21:14:31910[hz.SMP.cached.thread-3]信息com.hazecast.nio.tcp.InitConnectionTask-[10.99.248.130]:5701[dev][3.7.5]无法连接到:/10.99.248.138:5702。原因:SocketException[连接拒绝寻址/10.99.248.138:57002]2020-10-22 21:14:31910[hz.SMP.cached.thread-3]信息com.hazecast.cluster.impl.TcpIpJoiner-[10.99.248.130]:5701[dev][3.7.5][10.99.248.138]:5702被添加到黑名单中。2020-10-22 21:14:31914[hz.SMP.cached.thread-2]信息com.hazecast.nio.tcp.InitConnectionTask-[10.99.248.130]:5701[dev][3.7.5]连接到/10.99.248.138:5703,超时:0,绑定任意:true2020-10-22 21:14:31915[hz.SMP.cached.thread-2]信息com.hazecast.nio.tcp.InitConnectionTask-[10.99.248.130]:5701[dev][3.7.5]无法连接到:/10.99.248.138:5703。原因:SocketException[连接拒绝寻址/10.99.248.138:5703]2020-10-22 21:14:31915[hz.SMP.cached.thread-2]信息com.hazecast.cluster.impl.TcpIpJoiner-[10.99.248.130]:5701[dev][3.7.5][10.99.248.138]:5703被添加到黑名单中。2020-10-22 21:14:31915[hz.SMP.cached.thread-2]信息com.hazecast.nio.tcp.InitConnectionTask-[10.99.248.130]:5701[dev][3.7.5]连接到/10.99.248.138:5701,超时:0,绑定任意:true2020-10-22 21:14:31925[hz.SMP.cached.thread-1]信息com.hazecast.nio.tcp.InitConnectionTask-[10.99.248.130]:5701[dev][3.7.5]连接到/10.99.248.130:5702,超时:0,绑定任意:true2020-10-22 21:14:31933[hz.SMP.cached.thread-1]信息com.hazecast.nio.tcp.InitConnectionTask-[10.99.248.130]:5701[dev][3.7.5]无法连接到:/10.99.248.130:5702。原因:SocketException[连接拒绝寻址/10.99.248.130:57002]2020-10-22 21:14:31933[hz.SMP.cached.thread-1]信息com.hazecast.cluster.impl.TcpIpJoiner-[10.99.248.130]:5701[dev][3.7.5][10.99.248.130]:5702被添加到黑名单中。2020-10-22 21:14:31934[hz.SMP.cached.thread-1]信息com.hazecast.nio.tcp.InitConnectionTask-[10.99.248.130]:5701[dev][3.7.5]连接到/10.99.248.130:5703,超时:0,绑定任意:true2020-10-22 21:14:31934[hz.SMP.cached.thread-1]信息com.hazecast.nio.tcp.InitConnectionTask-[10.99.248.130]:5701[dev][3.7.5]无法连接到:/10.99.248.130:5703。原因:SocketException[连接拒绝寻址/10.99.248.130:5703]2020-10-22 21:14:31934[hz.SMP.cached.thread-1]信息com.hazecast.cluster.impl.TcpIpJoiner-[10.99.248.130]:5701[dev][3.7.5][10.99.248.130]:5703被添加到黑名单中。2020-10-22 21:14:31947[hz.SMP.cached.thread-2]信息com.hazecast.nio.tcp.TcpIpConnectionManager-[10.99.248.130]:5701[dev][3.7.5]在/10.99.248.1320:41397和/10.99.288.138:5701 之间建立了套接字连接

似乎我找到了罪魁祸首。我们的应用程序使用非标准的方式来存储Hazelcast的配置。它使用数据库中以BLOB形式存储的属性文件,其内容为:

榛子铸件_多铸件_端口=榛子cast_MULTICAST_TTL=榛子cast_MULTICAST_IP=榛子cast_MODE=榛子cast_UNICAST_IP=10.99.248.138 10.99.248.130HAZELCAST_CONNECTION_TIMEOUT_SECONDS=

删除10.99.248.138并重新启动应用程序解决了这个问题。