Repository navigation
Keycloak performance and composite roles #42190
Unanswered
yegortokmakov
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
We are using Keycloak extensively with a realm per tenant. As described in many issues here on GitHub, especially #11074, we see performance degrading significantly after around 400 realms, and it becomes completely unresponsive as the number grows. Adding CPU or memory resources to the cluster does not help at all.
If we understand correctly, the biggest bottleneck is the use of composite roles for cross-realm access — specifically the admin roles from the master realm used to access other realms. Is there a way to remove or avoid these roles in order to eliminate the bottleneck?
P.S. We are aware of Keycloak Organizations, but we currently prefer the complete isolation that realms provide.
All reactions