<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 24 Apr 2015, at 15:36, Stian Thorgersen &lt;<a 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 href="mailto:lkrzyzan@redhat.com" class="">lkrzyzan@redhat.com</a>&gt;<br class="">To: "keycloak-user" &lt;<a 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 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="">jboss.org Development Team<br class=""><br class=""><br class="">_______________________________________________<br class="">keycloak-user mailing list<br class="">keycloak-user@lists.jboss.org<br class="">https://lists.jboss.org/mailman/listinfo/keycloak-user<br class=""></blockquote></div></blockquote></div><br class=""></body></html>