Keycloak Performance Issue when it is used in Multi Realm

1,592 views
Skip to first unread message

Manjunath R Gowda

unread,
Apr 4, 2022, 10:29:08 AM4/4/22
to Keycloak User
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:40 AM4/5/22
to Keycloak User
Anyone? Any update?

Thibaud Benoist

unread,
Nov 9, 2022, 6:09:04 AM11/9/22
to Keycloak User
Hi, It is a known issue of keycloak. Above 450 realms it becomes very slow. 

I made the choice of working with 1 realm and many clients / groups (one group per pseudo-realm) as a workaround.

Best regards

Thibaud Benoist

unread,
Nov 9, 2022, 6:13:22 AM11/9/22
to Keycloak User

Tony Harris

unread,
Nov 9, 2022, 6:15:29 AM11/9/22
to Thibaud Benoist, Keycloak User
We're running something similar but 3000+ realms.  We're running with 10 nodes in a EKS cluster.  Login performance is ok and the console responds ok until you upset the cache by adding or changing realms.   We did look at a standalone infinspan cache but hit a bug in infinispan whereby it never recovered after a Postgres database outage.  There is a fix in he latest Infinispan RC but not yet tried it.

--
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/89888c3a-eb50-4382-b96e-82389d40a77en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages