This is a short and simple example on how to build a proper Keycloak cluster, using DNS_PING
as discovery protocol and an NGINX server as reverse proxy.
If you prefer to use JDBC_PING, see @xgp's example gist here: https://gist.github.com/xgp/768eea11f92806b9c83f95902f7f8f80
Please see also my video about Keycloak Clustering: http://www.youtube.com/watch?v=P96VQkBBNxU
NOTE: The video covers JDBC_PING
protocol and uses the legacy Keycloak Wildfly distribution!
Hello , anybody know how to share the cache between hosts that runs the same docker-compose like in this example?
i have this config:
Server 1 & 2 : running docker-compose
ExternalDatabse
loadBalancer: switch between the two servers
the cache is shared only on the instances running on the same server, so if you have a solution for this it will be so helpful for me.