[keycloak-user] Clustering on localhost with shared DB

Libor Krzyžanek lkrzyzan at redhat.com
Fri Apr 24 09:12:29 EDT 2015


Hi,
I’m trying to achieve full user session replication which means when I’m logged in on node 1 and then hit node 2 then I expect to be logged in but I’m forced  to log in again.

I have:
1. two localhost nodes with JBoss EAP 6.4 + War installation
2. Postgres
3. EAP cofigured based on http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/clustering.html <http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/clustering.html>

I triedeither
        <distributed-cache name="sessions" mode="SYNC" owners=“2" />
        <distributed-cache name="loginFailures" mode="SYNC" owners=“2" />
or
                <replicated-cache name="sessions" mode="SYNC"/>
                <replicated-cache name="loginFailures" mode="SYNC”/>
but with same result.

I’m starting nodes by
./jb1/bin/standalone.sh  --server-config=standalone-ha.xml -Djboss.node.name=node1
./jb2/bin/standalone.sh  --server-config=standalone-ha.xml -Djboss.socket.binding.port-offset=100 -Djboss.node.name=node2


both jb1 and jb2 are identical and they know each other (Received new cluster view: [node1/keycloak|1] [node1/keycloak, node2/keycloak])

How do you test clustering of KC please?

Thanks,

Libor Krzyžanek
jboss.org <http://jboss.org/> Development Team

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20150424/4395729e/attachment.html 


More information about the keycloak-user mailing list