Keycloak 18 - Need help configuring distributed cache

Skip to first unread message

Frederik Enste

May 11, 2022, 9:44:46 PMMay 11
to Keycloak User
Hello guys,

I managed successfully to build my production keycloak docker container using this guide with an postgres backend and metrics and health checks enabled:

Now I'm trying to setup these docker containers on 2 different hosts to run in a ha cluster.
AFAIK before Keycloak 17 it was possible to do this via JDBC_PING but this feature seems to be removed in Keycloak 18.

Can someone help me setup the cache?
I read this guide but I am not familiar with how to setup the infinispan config to use JDBC_PING.

Best Regards,


May 12, 2022, 2:28:14 AMMay 12
to Frederik Enste,
I don't believe JDBC_PING is natively supported anymore. However, I went through the same process, and came up with the solution documented here:
> --
> You received this message because you are subscribed to the Google
> Groups "Keycloak User" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
> To view this discussion on the web visit
> <>.

Frederik Enste

May 13, 2022, 2:50:44 AMMay 13
to Keycloak User
Thank you very much!
I've searched for something like this for a few hours but I could not find anything helpful like this :)
Reply all
Reply to author
0 new messages