<div dir="ltr"><div><div>Hi Marek,<br><br></div>Yes we have both nodes mentioned in the TCPPING configuration, in both servers. It looks like this (x.x.x.x and y.y.y.y being server public IPs):<br><br>        &lt;subsystem xmlns=&quot;urn:jboss:domain:jgroups:2.0&quot; default-stack=&quot;tcp&quot;&gt;<br>            &lt;stack name=&quot;udp&quot;&gt;<br>                &lt;transport type=&quot;UDP&quot; socket-binding=&quot;jgroups-udp&quot;/&gt;<br>                &lt;protocol type=&quot;PING&quot;/&gt;<br>                &lt;protocol type=&quot;MERGE3&quot;/&gt;<br>                &lt;protocol type=&quot;FD_SOCK&quot; socket-binding=&quot;jgroups-udp-fd&quot;/&gt;<br>                &lt;protocol type=&quot;FD_ALL&quot;/&gt;<br>                &lt;protocol type=&quot;VERIFY_SUSPECT&quot;/&gt;<br>                &lt;protocol type=&quot;pbcast.NAKACK2&quot;/&gt;<br>                &lt;protocol type=&quot;UNICAST3&quot;/&gt;<br>                &lt;protocol type=&quot;pbcast.STABLE&quot;/&gt;<br>                &lt;protocol type=&quot;pbcast.GMS&quot;/&gt;<br>                &lt;protocol type=&quot;UFC&quot;/&gt;<br>                &lt;protocol type=&quot;MFC&quot;/&gt;<br>                &lt;protocol type=&quot;FRAG2&quot;/&gt;<br>                &lt;protocol type=&quot;RSVP&quot;/&gt;<br>            &lt;/stack&gt;<br>            &lt;stack name=&quot;tcp&quot;&gt;<br>                &lt;transport type=&quot;TCP&quot; socket-binding=&quot;jgroups-tcp&quot;/&gt;<br>                &lt;protocol type=&quot;TCPPING&quot;&gt;<br>                     &lt;property name=&quot;initial_hosts&quot;&gt;x.x.x.x[7600],y.y.y.y[7600]&lt;/property&gt;<br>                     &lt;property name=&quot;num_initial_members&quot;&gt;2&lt;/property&gt;<br>                     &lt;property name=&quot;port_range&quot;&gt;0&lt;/property&gt;<br>                     &lt;property name=&quot;timeout&quot;&gt;2000&lt;/property&gt;<br>                &lt;/protocol&gt;<br>                &lt;!--&lt;protocol type=&quot;MPING&quot; socket-binding=&quot;jgroups-mping&quot;/&gt;--&gt;<br>                &lt;protocol type=&quot;MERGE2&quot;/&gt;<br>                &lt;protocol type=&quot;FD_SOCK&quot; socket-binding=&quot;jgroups-tcp-fd&quot;/&gt;<br>                &lt;protocol type=&quot;FD&quot;/&gt;<br>                &lt;protocol type=&quot;VERIFY_SUSPECT&quot;/&gt;<br>                &lt;protocol type=&quot;pbcast.NAKACK2&quot;/&gt;<br>                &lt;protocol type=&quot;UNICAST3&quot;/&gt;<br>                &lt;protocol type=&quot;pbcast.STABLE&quot;/&gt;<br>                &lt;protocol type=&quot;pbcast.GMS&quot;/&gt;<br>                &lt;protocol type=&quot;MFC&quot;/&gt;<br>                &lt;protocol type=&quot;FRAG2&quot;/&gt;<br>                &lt;protocol type=&quot;RSVP&quot;/&gt;<br>            &lt;/stack&gt;<br>        &lt;/subsystem&gt;<br><br><br></div><div>We give node names when starting the servers by passing the following params: <br>./standalone.sh -c standalone-ha.xml -b x.x.x.x -<a href="http://Djboss.node.name">Djboss.node.name</a>=node1<br>./standalone.sh -c standalone-ha.xml -b y.y.y.y -<a href="http://Djboss.node.name">Djboss.node.name</a>=node2<br><br></div><div>However, once we start the servers, the two servers seem to detect only itself and start working independently.<br><br></div><div>In node1 it logs:<br>...<br>05:09:44,643 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000078: Starting JGroups Channel<br>05:09:44,696 INFO  [stdout] (MSC service thread 1-1) <br>05:09:44,697 INFO  [stdout] (MSC service thread 1-1) -------------------------------------------------------------------<br>05:09:44,697 INFO  [stdout] (MSC service thread 1-1) GMS: address=node1/keycloak, cluster=keycloak, physical address=<a href="http://0.0.0.0:7600">0.0.0.0:7600</a><br>05:09:44,697 INFO  [stdout] (MSC service thread 1-1) -------------------------------------------------------------------<br>05:09:46,779 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000094: Received new cluster view: [node1/keycloak|0] (1) [node1/keycloak]<br>05:09:46,781 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000079: Cache local address is node1/keycloak, physical addresses are [<a href="http://0.0.0.0:7600">0.0.0.0:7600</a>]<br>...<br><br></div><div>In node2 it&#39;s the same case with node1 replaced by node2 in the log.<br><br></div><div>Also, if we&#39;re doing an activity in node1, something similar to the following gets logged in that server, without any mention about node2 (and vise versa if the activity was done in node2)<br>...<br>05:09:57,280 DEBUG [org.infinispan.interceptors.InvalidationInterceptor] (MSC service thread 1-1) Cache [node1/keycloak] replicating InvalidateCommand{keys=[e2734aa6-e770-407a-b00a-1915105ea586]}<br>05:09:57,281 DEBUG [org.infinispan.interceptors.InvalidationInterceptor] (MSC service thread 1-1) Cache [node1/keycloak] replicating InvalidateCommand{keys=[ebb4d88a-a364-4ec1-bd7c-48572ac762af]}<br>05:09:57,283 DEBUG [org.infinispan.interceptors.InvalidationInterceptor] (MSC service thread 1-1) Cache [node1/keycloak] replicating InvalidateCommand{keys=[9658becc-34e4-4fd1-817c-46b3b9ad4c7f]}<br>...<br></div><div> <br><br></div><div>Could you determine if we&#39;re doing something wrong here?<br><br><br></div><div>Thanks,<br></div><div>Lohitha.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 7, 2015 at 7:58 PM, Marek Posolda <span dir="ltr">&lt;<a href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi,<br>
      <br>
      once you start both nodes, do you have the message in the
      server.log as mentioned in the troubleshooting section:
      <a href="http://docs.jboss.org/keycloak/docs/1.2.0.CR1/userguide/html/clustering.html#d4e2750" target="_blank">http://docs.jboss.org/keycloak/docs/1.2.0.CR1/userguide/html/clustering.html#d4e2750</a>
      ?<br>
      <br>
      Also I recall that for TCPPING you need to manually mention all
      the cluster nodes in the JGroups configuration of TCPPING
      protocol. This needs to be done on both nodes AFAIR. Do you have
      it configured?<br>
      <br>
      Marek<div><div class="h5"><br>
      <br>
      On 7.5.2015 15:39, Lohitha Chiranjeewa wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>Hi,<br>
                  <br>
                </div>
                We&#39;re trying to have a clustered environment with two
                servers, and need Infinispan caches to work perfectly. <br>
                <br>
                We&#39;re using AWS servers for all our requirements, and
                they don&#39;t support multicasting. Hence the UDP option is
                out for us. So, as per the JIRA ticket KEYCLOAK-979, we
                have tried to continue with TCP instead. However we&#39;ve
                had no success. Changes don&#39;t get synced between the
                servers.<br>
                <br>
              </div>
              To configure TCPPING, we&#39;ve referred both KEYCLOAK-979
              ticket contents and <a href="http://middlewaremagic.com/jboss/?p=2015" target="_blank">http://middlewaremagic.com/jboss/?p=2015</a>.
              We have enabled TCP communication in our VPC and have all
              the necessary ports open in our servers. <br>
              <br>
              We&#39;ve followed the step given at <a href="http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/clustering.html" target="_blank">http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/clustering.html</a>
              to setup Infinispan and related configs. <br>
              <br>
            </div>
            What could we be doing wrong here? Any configuration we&#39;re
            missing?<br>
            <br>
            <br>
          </div>
          Thanks,<br>
        </div>
        Lohitha.<br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br></div>