【问题标题】:How to config Wildfly cluster on google cloud instance如何在谷歌云实例上配置 Wildfly 集群
【发布时间】:2017-08-11 08:38:14
【问题描述】:

我在谷歌云平台上有问题。 我在VM中尝试POC,它可以正常集群。

但在谷歌云平台。无法在 Wildfly 中加入带有 JGROUP 的集群 我有 2 个实例都在域模式下安装 Centos 7 和 wildfly 10.1.0 final。 我设置如下:https://docs.jboss.org/author/display/WFLY9/WildFly+9+Cluster+Howto

    2017-03-20 09:44:54,068 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-2) ISPN000094: Received new cluster view for channel ejb: [master:master01|0] (1) [master:master01]
2017-03-20 09:44:54,069 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-8) ISPN000094: Received new cluster view for channel hibernate: [master:master01|0] (1) [master:master01]
2017-03-20 09:44:54,074 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-8) ISPN000079: Channel hibernate local address is master:master01, physical addresses are [127.0.0.1:55200]
2017-03-20 09:44:54,085 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000094: Received new cluster view for channel server: [master:master01|0] (1) [master:master01]
2017-03-20 09:44:54,085 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000079: Channel server local address is master:master01, physical addresses are [127.0.0.1:55200]
2017-03-20 09:44:54,086 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-2) ISPN000079: Channel ejb local address is master:master01, physical addresses are [127.0.0.1:55200]
2017-03-20 09:44:54,085 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-6) ISPN000094: Received new cluster view for channel web: [master:master01|0] (1) [master:master01]
2017-03-20 09:44:54,088 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-6) ISPN000079: Channel web local address is master:master01, physical addresses are [127.0.0.1:55200]

奴隶

2017-03-20 11:21:51,701 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-3) ISPN000094: Received new cluster view for channel web: [sctha1:master02|0] (1) [sctha1:master02]
2017-03-20 11:21:51,701 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-4) ISPN000094: Received new cluster view for channel hibernate: [sctha1:master02|0] (1) [sctha1:master02]
2017-03-20 11:21:51,702 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000094: Received new cluster view for channel ejb: [sctha1:master02|0] (1) [sctha1:master02]
2017-03-20 11:21:51,703 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-7) ISPN000094: Received new cluster view for channel server: [sctha1:master02|0] (1) [sctha1:master02]
2017-03-20 11:21:51,709 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-4) ISPN000079: Channel hibernate local address is sctha1:master02, physical addresses are [10.140.0.2:55200]
2017-03-20 11:21:51,710 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000079: Channel ejb local address is sctha1:master02, physical addresses are [10.140.0.2:55200]
2017-03-20 11:21:51,710 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-7) ISPN000079: Channel server local address is sctha1:master02, physical addresses are [10.140.0.2:55200]
2017-03-20 11:21:51,711 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-3) ISPN000079: Channel web local address is sctha1:master02, physical addresses are [10.140.0.2:55200]

防火墙已禁用。

有人有同样的问题吗?

【问题讨论】:

标签: cloud cluster-computing google-cloud-platform wildfly


【解决方案1】:

问题是因为 JGroups 默认设置为使用私有接口 (127.0.0.1)。在standalone-ha.xml 你会发现:

<socket-binding name="jgroups-udp" interface="private" port="55200" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45688"/>

将该属性更改为 public 并确保 WildFly 绑定到正确的界面(-b 命令行选项)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多