[keycloak-user] Clustering on localhost with shared DB
Libor Krzyžanek
lkrzyzan at redhat.com
Fri Apr 24 09:50:09 EDT 2015
Attaching keycloak-server.json and standalone-ha.xml
Thanks,
Libor Krzyžanek
jboss.org <http://jboss.org/> Development Team
> On 24 Apr 2015, at 15:36, Stian Thorgersen <stian at redhat.com> wrote:
>
> Can you attach your keycloak-server.json and standalone.xml?
>
> ----- Original Message -----
>> From: "Libor Krzyžanek" <lkrzyzan at redhat.com>
>> To: "keycloak-user" <keycloak-user at 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.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 Development Team
>>
>>
>> _______________________________________________
>> keycloak-user mailing list
>> keycloak-user at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/keycloak-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20150424/d2252ab2/attachment-0003.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keycloak-server.json
Type: application/json
Size: 1358 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/keycloak-user/attachments/20150424/d2252ab2/attachment-0001.bin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20150424/d2252ab2/attachment-0004.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: standalone-ha.xml
Type: application/xml
Size: 22512 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/keycloak-user/attachments/20150424/d2252ab2/attachment-0001.rdf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20150424/d2252ab2/attachment-0005.html
More information about the keycloak-user
mailing list