Wildfly:JGRP000031:node1 / trustcache:将单播消息丢弃到错误的目标node2 / trustcache

时间:2016-07-25 10:04:12

标签: wildfly jgroups

我尝试使用独立模式创建群集,并且我已按照此链接http://middlewaremagic.com/jboss/?p=2015启用群集,但无法按预期工作。     节点1:192.168.1.10     节点2:192.168.1.11

and i'm starting the server as below 

E:\wildfly-8.2.0.Final\bin>standalone.bat -b 0.0.0.0 -c standalone-full-ha.xml -Djboss.node.name=node1

E:\wildfly-8.2.0.Final\bin>standalone.bat -b 0.0.0.0 -c standalone-full-ha.xml -Djboss.node.name=node2

 and when i start Node1 i'm getting message as (it should have both node details instead of node1 details)

Received new cluster view: [node1/trustcache|0] (1) [node1/trustcache] 

From Node2 : Received new cluster view: [node2/trustcache|0] (1) [node2/trustcache]

and below is my configuration

cache-container name="trustcache" default-cache="usercache" jndi-name="java:jboss/infinispan/test" aliases="test">
                <transport stack="tcp" lock-timeout="600000"/>
                <replicated-cache name="test" start="EAGER" batching="true" mode="ASYNC">
                    <locking isolation="REPEATABLE_READ"/>
                </replicated-cache>
                <replicated-cache name="usercache" start="EAGER" batching="true" mode="ASYNC">
                    <locking isolation="REPEATABLE_READ"/>
                    <eviction strategy="LRU" max-entries="10000"/>
                    <expiration max-idle="1800000" lifespan="-1"/>
                </replicated-cache>

TCP Configuration

  <subsystem xmlns="urn:jboss:domain:jgroups:2.0" default-stack="tcp">
            <stack name="tcp">
                <transport type="TCP" socket-binding="jgroups-tcp"/>
                <protocol type="TCPPING">
                    <property name="initial_hosts">
                        192.168.1.10[7600],192.168.1.11[7600]
                    </property>
                    <property name="num_initial_members">
                        3
                    </property>
                    <property name="port_range">
                        0
                    </property>
                    <property name="timeout">
                        2000
                    </property>
                </protocol>
                <protocol type="MPING" socket-binding="jgroups-mping"/>
                <protocol type="MERGE2"/>
                <protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd"/>
                <protocol type="FD"/>
                <protocol type="VERIFY_SUSPECT"/>
                <protocol type="pbcast.NAKACK2"/>
                <protocol type="UNICAST3"/>
                <protocol type="pbcast.STABLE"/>
                <protocol type="pbcast.GMS"/>
                <protocol type="MFC"/>
                <protocol type="FRAG2"/>
                <protocol type="RSVP"/>
            </stack>

Error Message: 

JGRP000031: node1/trustcache: dropping unicast message to wrong destination node2/trustcache

[org.jgroups.protocols.TCP] (Timer-5,shared=tcp) JGRP000032: null: no physical address for 606e13a9-4a44-3c71-5b55-22fca7db77f4, dropping message



 I have created the configuration as follows.

     1. Installed Apache and configured Node1 & Node2 server details
     2. Node1(192.168.1.10) and added the details in standalone-full-ha.xml
     3. Node2(192.168.1.11) and added the details in standalone-full-ha.xml
     4. Enabled both node 1 & node 2 in apache
     5. i have started both JBOSS 
     6. when i start both NOde 1 & Node 2 (two different instances) i'm not able to achieve clustering.

此问题与端口或配置有关吗?。

1 个答案:

答案 0 :(得分:0)

使用开始选项&#34; -b 0.0.0.0&#34;可能无法正常工作。 尝试使用真正的IP。