Keycloak user session retention after restart

232 views
Skip to first unread message

shivanand patil

unread,
Jun 25, 2023, 3:12:26 AM6/25/23
to Keycloak User
Hello 

We are using keycloak 18 and we have not enabled ispn cache & now we have close to 15000 users sessions logged in to our application. To enable ispn cache we have to restart the instance and all 15k users sessions will be lost, is there a possibility that we can backup these sessions and restore them after the restart.

Any help would be much appreciated. 

Sada Shiv Dash

unread,
Jun 25, 2023, 5:23:13 AM6/25/23
to shivanand patil, Keycloak User
Are you using inbuild infinispan cache of keycloak? If yes  then on restart all the cache will lost . 

Regards
Sada Shiv Dash

On 25-Jun-2023, at 12:42 PM, shivanand patil <shvana...@gmail.com> wrote:

Hello 

We are using keycloak 18 and we have not enabled ispn cache & now we have close to 15000 users sessions logged in to our application. To enable ispn cache we have to restart the instance and all 15k users sessions will be lost, is there a possibility that we can backup these sessions and restore them after the restart.

Any help would be much appreciated. 

--
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 keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/7076e18b-59a0-41d8-bf2d-943f2be661f4n%40googlegroups.com.

shivanand patil

unread,
Jun 26, 2023, 12:19:19 AM6/26/23
to Keycloak User

We tried to clone the keycloak instance and configured a infinispan server to persist the sessions into database, But when we manually add any new sessions to the client session table those sessions are not loaded back to keycloak on restart. Also is there a way to decrypt the values present in data column (please refer the screenshot attached).



Screenshot from 2023-06-25 12-47-34.png
Reply all
Reply to author
Forward
Message has been deleted
0 new messages