I’m having issues getting a proper understanding of what’s required for me to be able to gracefully restart my openshift keycloak deployment. Currently I’m testing with 3 instances and whatever I have tried so far has not resulted in sessions being resilient to deployment rollouts.
I read things about affinity and sticky sessions and I’m not sure exactly what I should be wanting, but I think it’s a situation where online user/client sessions are always distributed, so I guess sticky sessions are out the window for me then. Please advice.
I read about many different things, such as “embedded infinispan” and connecting to a remote infinispan cluster. But I can’t get my head around what’s the actual minimal requirement for me to get to a proper, however scalable/unscalable, HA setup.
Although having reading this page, Configuring distributed caches - Keycloak
…I really can’t workout if it’s implying that I need a remote infinispan cluster, or that I don’t need it because magically (in the context of running Keycloak using the k8s operator, or even regardless of that) each Keycloak instances will have a companion “embedded infinispan” buddy, and those buddies can synchronize their state somehow.
I’ve also seen that people have asked for the ability to share user and client (online) sessions by storing them in a central database, and how this is actually implemented and slated for release in v25.
Now, I’m not sure what I should be doing at this point. It’s either waiting for v25 which seems like a bad idea because I can’t work out when that will be released, or it’s trying to work out how to get the infinispan thing working. Or it’s something else.
Anyone that can help me sort out this mess is my hero. And a nice Friday to the rest of you too