Config global state for standalone Keycloak 22.0.5

Our team uses a standalone on-premise Keycloak 8.0.1 instance (no cloud, no cluster) and we’re migrating it to Keycloak 22.0.5. We noticed a couple of warning messages during Keycloak boot and the one I’m worried about is

WARN  [org.infinispan.CONFIG] (keycloak-cache-init) ISPN000569: Unable to persist Infinispan internal caches as no global state enabled

Is this warn message an indicator of any problem that has to be fixed in my specific case with a single Keycloak instance? I never faced a ‘global state’ notion before.

I consulted with Configuring Keycloak for production and Configuring distributed caches docs but only found recommendations for multi-node Keycloak clusters and nothing about standalone installations. Maybe there are examples of standalone Keycloak configuration without such warning messages?

I will be grateful for any assistance and hints

You don’t need to care about this log warning, it’s just a warning, no error, and additionally it’s “kind of” intended.
If you just run a single node Keycloak, you could also disable distributed caching and only use local caches with cache=local (see also All configuration - Keycloak).

1 Like

@dasniko Thanks!

cache=local is already applied in our conf, it is the warning that annoyed us.

Do I understand it correctly that even with this setting applied we still can benefit from Keycloak caching mechanism to speed up its operation, though we do not configure it explicitly like in cache-ispn.xml?

Yes, the cache is still used, but only locally, no network communication.