Can you attach your keycloak-server.json and standalone.xml?
----- Original Message -----
From: "Libor Krzyžanek" <lkrzyzan(a)redhat.com>
To: "keycloak-user" <keycloak-user(a)lists.jboss.org>
Sent: Friday, 24 April, 2015 3:12:29 PM
Subject: [keycloak-user] Clustering on localhost with shared DB
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...
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 Development Team
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user