Realm cache entries are greater than the number of realms

Hello,

I have a Keycloak cluster using an external Infinispan cluster. The realm cache is configured locally for the Keycloak nodes with a replicated “work” cache in Infinispan.

I have one “test” realm configured in addition to the master realm. When I run my load/performance tests using the “test” realm I see that the realm cache jumps up to hundreds of entries.

I assumed that the realm cache would contain one entry per realm but this does not appear to be the case.

Can somebody explain why I am seeing so many realm cache entries? Is this expected or does this indicate that I may have a problem with my configuration?

Thanks
Paul

From the docs:

  • realms and related data like clients, roles, and groups.

Well that makes perfect sense. Thank you for taking the time to respond.