Preserve user sessions over Keycloak restart

Hi @robertcck

There is this example provided by Thomas Darimont here : keycloak-project-example/deployments/local/clusterx/haproxy-database-ispn at main · thomasdarimont/keycloak-project-example · GitHub

With database persistence, but it requires a patch on keycloak-model-infinispan since Keycloak 15.0.2

This thread might also be interesting : Keycloak.X persisting infinispan to jdbc store

We also tried the setup : external Infinispan cluster (so remote cluster) with database persistence configured in this cluster, there was a lifespan issue while persisting user sessions but it has been fixed recently and will work now : https://github.com/keycloak/keycloak/issues/10755