<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class="">I have now apache webproxy with this configuration:</div><div class="">&lt;Proxy *&gt;<br class="">&nbsp; Order allow,deny<br class="">&nbsp; Allow from all<br class="">&lt;/Proxy&gt;<br class="">&lt;Proxy <a href="balancer://app/" class="">balancer://app/</a>&gt;<br class="">&nbsp; BalancerMember <a href="http://localhost:8080" class="">http://localhost:8080</a> route=app02<br class="">&nbsp; BalancerMember <a href="http://localhost:8180" class="">http://localhost:8180</a> route=app03<br class="">&nbsp; ProxySet lbmethod=byrequests<br class="">&lt;/Proxy&gt;<br class="">ProxyPass /balancer-manager !<br class="">ProxyPass /server-status !<br class="">ProxyPass /server-info !<br class="">ProxyPass / <a href="balancer://app/" class="">balancer://app/</a></div><div class="">ProxyPassReverse / <a href="balancer://app/" class="">balancer://app/</a></div><div class=""><br class=""></div><div class="">It looks it helped.</div><div class="">When I have started both nodes and I see that caches on both nodes are started then everything is fine.</div><div class="">Scenario: When I login to node1, then stop node1, then I’m redirected to node2 and I’m still logged in. Great!</div><div class=""><br class=""></div><div class="">But I see two issues right now:</div><div class="">1. Caches are replicated to newly started node too late.</div><div class="">Scenario is:</div><div class="">1. start node1, log in.</div><div class="">2. start node2, wait till you see that node1 knows new node and node2 is fully started</div><div class="">3. killl node1.</div><div class=""><br class=""></div><div class="">Then I’m redirected to login page.</div><div class=""><br class=""></div><div class="">This happens really only when no request hits newly started node2. If I do few reloads in browser before I kill node1 then I see in logs that those infinispan caches are created on node2 and fully replicated.</div><div class=""><br class=""></div><div class="">Is it related to “start = EAGER” ?</div><div class=""><br class=""></div><div class="">2. Weird thing is on /account/session page (<a href="http://localhost/auth/realms/cluster-test/account/sessions" class="">http://localhost/auth/realms/cluster-test/account/sessions</a>).</div><div class=""><br class=""></div><div class="">I got:</div><div class=""><br class=""></div><div class="">13:30:50,291 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/auth].[Keycloak REST Interface]] (http-/127.0.0.1:8080-2) JBWEB000236:&nbsp;Servlet.service() for servlet Keycloak REST Interface threw exception: java.lang.RuntimeException: request path: /auth/realms/cluster-test/account/sessions<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:54) [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.event(JBossWebContext.java:91)<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.invoke(JBossWebContext.java:72)<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_40]<br class="">Caused by: org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalStateException: Cache mode should be DIST, rather than REPL_SYNC<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76) [resteasy-jaxrs-3.0.9.Final.jar:]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:212) [resteasy-jaxrs-3.0.9.Final.jar:]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:149) [resteasy-jaxrs-3.0.9.Final.jar:]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:372) [resteasy-jaxrs-3.0.9.Final.jar:]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179) [resteasy-jaxrs-3.0.9.Final.jar:]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220) [resteasy-jaxrs-3.0.9.Final.jar:]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) [resteasy-jaxrs-3.0.9.Final.jar:]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) [resteasy-jaxrs-3.0.9.Final.jar:]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.keycloak.services.filters.ClientConnectionFilter.doFilter(ClientConnectionFilter.java:41) [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:40) [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>... 17 more<br class="">Caused by: java.lang.IllegalStateException: Cache mode should be DIST, rather than REPL_SYNC<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.infinispan.distexec.mapreduce.MapReduceTask.ensureProperCacheState(MapReduceTask.java:685) [infinispan-core-5.2.11.Final-redhat-2.jar:5.2.11.Final-redhat-2]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.infinispan.distexec.mapreduce.MapReduceTask.&lt;init&gt;(MapReduceTask.java:226) [infinispan-core-5.2.11.Final-redhat-2.jar:5.2.11.Final-redhat-2]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.infinispan.distexec.mapreduce.MapReduceTask.&lt;init&gt;(MapReduceTask.java:190) [infinispan-core-5.2.11.Final-redhat-2.jar:5.2.11.Final-redhat-2]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.keycloak.models.sessions.infinispan.InfinispanUserSessionProvider.getUserSessions(InfinispanUserSessionProvider.java:121) [keycloak-model-sessions-infinispan-1.2.0.Beta1.jar:1.2.0.Beta1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.keycloak.services.resources.AccountService.sessionsPage(AccountService.java:344) [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_40]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_40]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_40]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_40]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137) [resteasy-jaxrs-3.0.9.Final.jar:]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:296) [resteasy-jaxrs-3.0.9.Final.jar:]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250) [resteasy-jaxrs-3.0.9.Final.jar:]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:140) [resteasy-jaxrs-3.0.9.Final.jar:]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:103) [resteasy-jaxrs-3.0.9.Final.jar:]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) [resteasy-jaxrs-3.0.9.Final.jar:]<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>... 28 more</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Same error I get in admin console (<a href="http://localhost/auth/admin/master/console/#/realms/cluster-test/sessions/realm" class="">http://localhost/auth/admin/master/console/#/realms/cluster-test/sessions/realm</a>)<br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">Thanks,</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Libor Krzyžanek</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://jboss.org" class="">jboss.org</a>&nbsp;Development Team</div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 27 Apr 2015, at 09:05, Libor Krzyžanek &lt;<a href="mailto:lkrzyzan@redhat.com" class="">lkrzyzan@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=windows-1252" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Marek,<div class="">your’re right that i’m hitting directly localhsot on different ports.</div><div class=""><br class=""><div class="">I was thinking about cookies resp. load balancer so I checked cookies and they were sent on both ports.</div><div class=""><br class=""></div><div class="">I’ll set up load balancer and I’ll will see.&nbsp;</div><div class=""><div class="">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">Thanks,</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Libor Krzyžanek</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://jboss.org/" class="">jboss.org</a>&nbsp;Development Team</div>
</div>
<br class=""><div class=""><blockquote type="cite" class=""><div class="">On 24 Apr 2015, at 19:06, Marek Posolda &lt;<a href="mailto:mposolda@redhat.com" class="">mposolda@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    <div class="moz-cite-prefix">Hi Libor,<br class="">
      <br class="">
      the config files looks good (at least for the first look), but
      question is if you're using loadbalancer? <br class="">
      <br class="">
      If you're not using loadbalancer and you access keycloak servers
      directly on localhost:8080 and localhost:8180, the problem might
      be just in the fact that browser cookie KEYCLOAK_IDENTITY is not
      shared between them and hence going to localhost:8180 will not
      find KEYCLOAK_IDENTITY cookie from localhost:8080 and will try to
      create new session. <br class="">
      <br class="">
      You can check admin console or account management and list
      available user sessions on both nodes. If both cluster nodes have
      same sessions, then replication of userSessions works fine, but
      only issue is really the cookie. <br class="">
      <br class="">
      I suspect that in production, you will use loadbalancer, so this
      issue won't happen.<br class="">
      <br class="">
      Marek<br class="">
      <br class="">
      On 24.4.2015 15:50, Libor Krzyžanek wrote:<br class="">
    </div>
    <blockquote cite="mid:0AD87949-C8F5-418C-8C79-036155DBEBD7@redhat.com" type="cite" class="">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252" class="">
      Attaching keycloak-server.json and standalone-ha.xml<br class="">
      <div class="">
        <div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">
          Thanks,</div>
        <div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="">
        </div>
        <div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Libor
          Krzyžanek</div>
        <div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a moz-do-not-send="true" href="http://jboss.org/" class="">jboss.org</a>&nbsp;Development
          Team</div>
      </div>
      <br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252" class="">
      <br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252" class="">
      <br class="">
      <div class="">
        <blockquote type="cite" class="">
          <div class="">On 24 Apr 2015, at 15:36, Stian Thorgersen &lt;<a moz-do-not-send="true" href="mailto:stian@redhat.com" class="">stian@redhat.com</a>&gt; wrote:</div>
          <br class="Apple-interchange-newline">
          <div class="">Can you attach your keycloak-server.json and
            standalone.xml?<br class="">
            <br class="">
            ----- Original Message -----<br class="">
            <blockquote type="cite" class="">From: "Libor Krzyžanek"
              &lt;<a moz-do-not-send="true" href="mailto:lkrzyzan@redhat.com" class="">lkrzyzan@redhat.com</a>&gt;<br class="">
              To: "keycloak-user" &lt;<a moz-do-not-send="true" href="mailto:keycloak-user@lists.jboss.org" class="">keycloak-user@lists.jboss.org</a>&gt;<br class="">
              Sent: Friday, 24 April, 2015 3:12:29 PM<br class="">
              Subject: [keycloak-user] Clustering on localhost with
              shared DB<br class="">
              <br class="">
              Hi,<br class="">
              I’m trying to achieve full user session replication which
              means when I’m<br class="">
              logged in on node 1 and then hit node 2 then I expect to
              be logged in but<br class="">
              I’m forced to log in again.<br class="">
              <br class="">
              I have:<br class="">
              1. two localhost nodes with JBoss EAP 6.4 + War
              installation<br class="">
              2. Postgres<br class="">
              3. EAP cofigured based on<br class="">
              <a moz-do-not-send="true" href="http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/clustering.html" class="">http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/clustering.html</a><br class="">
              <br class="">
              I triedeither<br class="">
              &lt;distributed-cache name="sessions" mode="SYNC" owners=“
              2 " /&gt;<br class="">
              &lt;distributed-cache name="loginFailures" mode="SYNC"
              owners=“ 2 " /&gt;<br class="">
              or<br class="">
              &lt;replicated-cache name="sessions" mode="SYNC"/&gt;<br class="">
              &lt;replicated-cache name="loginFailures" mode="SYNC”/&gt;<br class="">
              but with same result.<br class="">
              <br class="">
              I’m starting nodes by<br class="">
              ./jb1/bin/standalone.sh --server-config=standalone-ha.xml<br class="">
              -Djboss.node.name=node1<br class="">
              ./jb2/bin/standalone.sh --server-config=standalone-ha.xml<br class="">
              -Djboss.socket.binding.port-offset=100
              -Djboss.node.name=node2<br class="">
              <br class="">
              <br class="">
              both jb1 and jb2 are identical and they know each other
              (Received new cluster<br class="">
              view: [node1/keycloak|1] [node1/keycloak, node2/keycloak])<br class="">
              <br class="">
              How do you test clustering of KC please?<br class="">
              <br class="">
              Thanks,<br class="">
              <br class="">
              Libor Krzyžanek<br class="">
              <a href="http://jboss.org/" class="">jboss.org</a> Development Team<br class="">
              <br class="">
              <br class="">
              _______________________________________________<br class="">
              keycloak-user mailing list<br class="">
              <a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br class="">
              <a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br class="">
            </blockquote>
          </div>
        </blockquote>
      </div>
      <br class="">
      <br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <pre wrap="" class="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
    </blockquote>
    <br class="">
  </div>

</div></blockquote></div><br class=""></div></div></div>_______________________________________________<br class="">keycloak-user mailing list<br class=""><a href="mailto:keycloak-user@lists.jboss.org" class="">keycloak-user@lists.jboss.org</a><br class="">https://lists.jboss.org/mailman/listinfo/keycloak-user</div></blockquote></div><br class=""></div></body></html>