Keycloak Performance Issue when it is used in Multi Realm

324 views
Skip to first unread message

Manjunath R Gowda

unread,
Apr 4, 2022, 10:47:30 AM4/4/22
to Keycloak Dev
Hi,

We are trying to create the multi tenant web application so we are using the multi realm concept from the keycloak to solve the problem. but as we increase the keycloak realm to 500+ it is taking longger time to provide HTTP response which is causing us lot of damage and also the admin console is not at all loading in the front end. 

We are running keycloak in Kubernate and which is connected to Postgres database

Is there something we are missing or the keycloak performance is always slow when it is used in multi realm?

Manjunath R Gowda

unread,
Apr 5, 2022, 4:00:17 AM4/5/22
to Keycloak Dev
Anyone? Any update?

Garth

unread,
Apr 5, 2022, 4:02:37 AM4/5/22
to Till Markus (IOC/PAU1)
It is a known issue that Keycloak has serious performance problems with over 400 realms, regardless of the hardware it is run on. I don’t have it in front of me, but there are several tickets and discussions on this issue. If you are using it to separate realm per tenant, you can use more than one Keycloak cluster to solve this problem.
> --
> You received this message because you are subscribed to the Google
> Groups "Keycloak Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to keycloak-dev...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/keycloak-dev/17573736-0fd9-4ad9-9bfc-6f0eaf62a7afn%40googlegroups.com
> <https://groups.google.com/d/msgid/keycloak-dev/17573736-0fd9-4ad9-9bfc-6f0eaf62a7afn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Thomas Darimont

unread,
Apr 5, 2022, 4:06:12 AM4/5/22
to Keycloak Dev
There is a new discussion that contains some suggestions for improving the handling of large numbers of realms with some impressive results: https://github.com/keycloak/keycloak/discussions/11074
Reply all
Reply to author
Forward
0 new messages