<div dir="ltr">It is not currently possible to run multiple nodes without clustering. However, it&#39;s possible to configure JGroups to work on AWS. I can&#39;t remember the configuration required though, but if you search the user mailing list you&#39;ll find instructions or google for JGroups and AWS.</div><div class="gmail_extra"><br><div class="gmail_quote">On 7 April 2016 at 10:22, Christian Schwarz <span dir="ltr">&lt;<a href="mailto:christian@datek.no" target="_blank">christian@datek.no</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
I&#39;m trying to setup a keycloak cluster on AWS, which does not support UDP multicast. IP addresses of the nodes are also not known in advance (I&#39;m using docker-cloud), so Infinispan/JGroups (&quot;keycloak-ha-posgres&quot; docker image) for user session replication will not work (seems that it requires either UDP multicast or IP addresses known in advance).<br>
<br>
The main problem I have is that logout is not working propertly. I only get logged out from one of the two keycloak nodes.<br>
<br>
I have tried to disable the user cache (by setting userCache.default.enabled = false) and to disable infinispan (by using “keycloak-postgres” docker image), but to no avail. The “other” keycloak node still thinks that the user is logged in, it’s not refreshing the user session from the database even if user cache and infinispan cluster cache is disbled.<br>
<br>
=&gt; Is there a possibility of using the database as a synchronization point between keycloak nodes? (i.e. each node always checks logout status in the database)<br>
Or is there another way of getting a keycloak cluster up and running on AWS when IP addresses are not known in advance?<br>
<br>
I hope there is a way… :)<br>
<br>
Kind regards,<br>
Christian<br>
<br>
_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></blockquote></div><br></div>