代码之家  ›  专栏  ›  技术社区  ›  Minh Trần

嵌入的hazelcast无法加入kubenetes集群

  •  0
  • Minh Trần  · 技术社区  · 7 年前

    我正在建立一个包含两个web应用程序节点的集群。他们使用Hazelcast 3.10.4共享缓存。我把他们部署在库伯内特斯。网络/加入的配置如下:

    <tcp-ip enabled="true">
           <member-list>
                <member>10.150.28.47:5701</member>
                <member>10.150.28.48:5701</member>
           </member-list>
    </tcp-ip>
    

    它们无法加入群集。以上IP是外部IP地址。日志包括:

    [10.233.2.124]:5701 [dev] [3.10.4] Accepting socket connection from /10.150.28.6:53192
    2018-12-10 16:48:59.520  INFO 7 --- [thread-Acceptor] c.h.nio.tcp.TcpIpConnectionManager       : [10.233.2.124]:5701 [dev] [3.10.4] Established socket connection between /10.233.2.124:5701 and /10.150.28.6:53192
    2018-12-10 16:48:59.536  WARN 7 --- [.IO.thread-in-2] c.h.nio.tcp.TcpIpConnectionManager       : [10.233.2.124]:5701 [dev] [3.10.4] Wrong bind request from [10.233.2.126]:5701! This node is not the requested endpoint: [10.150.28.47]:5701
    2018-12-10 16:48:59.536  INFO 7 --- [.IO.thread-in-2] com.hazelcast.nio.tcp.TcpIpConnection    : [10.233.2.124]:5701 [dev] [3.10.4] Connection[id=6, /10.233.2.124:5701->/10.150.28.6:53192, endpoint=null, alive=false, type=MEMBER] closed. Reason: Wrong bind request from [10.233.2.126]:5701! This node is not the requested endpoint: [10.150.28.47]:5701
    2018-12-10 16:49:00.522  INFO 7 --- [thread-Acceptor] com.hazelcast.nio.tcp.TcpIpAcceptor      : [10.233.2.124]:5701 [dev] [3.10.4] Accepting socket connection from /10.150.28.6:38391
    2018-12-10 16:49:00.524  INFO 7 --- [thread-Acceptor] c.h.nio.tcp.TcpIpConnectionManager       : [10.233.2.124]:5701 [dev] [3.10.4] Established socket connection between /10.233.2.124:5701 and /10.150.28.6:38391
    2018-12-10 16:49:00.527  WARN 7 --- [.IO.thread-in-0] c.h.nio.tcp.TcpIpConnectionManager       : [10.233.2.124]:5701 [dev] [3.10.4] Wrong bind request from [10.233.2.126]:5701! This node is not the requested endpoint: [10.150.28.47]:5701
    2018-12-10 16:49:00.527  INFO 7 --- [.IO.thread-in-0] com.hazelcast.nio.tcp.TcpIpConnection    : [10.233.2.124]:5701 [dev] [3.10.4] Connection[id=7, /10.233.2.124:5701->/10.150.28.6:38391, endpoint=null, alive=false, type=MEMBER] closed. Reason: Wrong bind request from [10.233.2.126]:5701! This node is not the requested endpoint: [10.150.28.47]:5701
    2018-12-10 16:49:01.523  INFO 7 --- [thread-Acceptor] com.hazelcast.nio.tcp.TcpIpAcceptor      : [10.233.2.124]:5701 [dev] [3.10.4] Accepting socket connection from /10.150.28.6:41764
    2018-12-10 16:49:01.525  INFO 7 --- [thread-Acceptor] c.h.nio.tcp.TcpIpConnectionManager       : [10.233.2.124]:5701 [dev] [3.10.4] Established socket connection between /10.233.2.124:5701 and /10.150.28.6:41764
    2018-12-10 16:49:01.528  WARN 7 --- [.IO.thread-in-1] c.h.nio.tcp.TcpIpConnectionManager       : [10.233.2.124]:5701 [dev] [3.10.4] Wrong bind request from [10.233.2.126]:5701! This node is not the requested endpoint: [10.150.28.47]:5701
    2018-12-10 16:49:01.529  INFO 7 --- [.IO.thread-in-1] com.hazelcast.nio.tcp.TcpIpConnection    : [10.233.2.124]:5701 [dev] [3.10.4] Connection[id=8, /10.233.2.124:5701->/10.150.28.6:41764, endpoint=null, alive=false, type=MEMBER] closed. Reason: Wrong bind request from [10.233.2.126]:5701! This node is not the requested endpoint: [10.150.28.47]:5701
    2018-12-10 16:49:02.524  INFO 7 --- [thread-Acceptor] com.hazelcast.nio.tcp.TcpIpAcceptor      : [10.233.2.124]:5701 [dev] [3.10.4] Accepting socket connection from /10.150.28.6:50909
    2018-12-10 16:49:02.526  INFO 7 --- [thread-Acceptor] c.h.nio.tcp.TcpIpConnectionManager       : [10.233.2.124]:5701 [dev] [3.10.4] Established socket connection between /10.233.2.124:5701 and /10.150.28.6:50909
    2018-12-10 16:49:02.528  WARN 7 --- [.IO.thread-in-2] c.h.nio.tcp.TcpIpConnectionManager       : [10.233.2.124]:5701 [dev] [3.10.4] Wrong bind request from [10.233.2.126]:5701! This node is not the requested endpoint: [10.150.28.47]:5701
    2018-12-10 16:49:02.528  INFO 7 --- [.IO.thread-in-2] com.hazelcast.nio.tcp.TcpIpConnection    : [10.233.2.124]:5701 [dev] [3.10.4] Connection[id=9, /10.233.2.124:5701->/10.150.28.6:50909, endpoint=null, alive=false, type=MEMBER] closed. Reason: Wrong bind request from [10.233.2.126]:5701! This node is not the requested endpoint: [10.150.28.47]:5701
    2018-12-10 16:49:03.524  INFO 7 --- [thread-Acceptor] com.hazelcast.nio.tcp.TcpIpAcceptor      : [10.233.2.124]:5701 [dev] [3.10.4] Accepting socket connection from /10.150.28.6:59191
    2018-12-10 16:49:03.526  INFO 7 --- [thread-Acceptor] c.h.nio.tcp.TcpIpConnectionManager       : [10.233.2.124]:5701 [dev] [3.10.4] Established socket connection between /10.233.2.124:5701 and /10.150.28.6:59191 
    
    1 回复  |  直到 7 年前
        1
  •  2
  •   sertug    7 年前

    如果你是在k8s环境下,你试过使用 Hazelcast Kubernetes discovery plugin ?

    推荐文章