Readiness check that takes into account ISPN cache sync status

Keycloak community,

We have a 22.x server setup on K8s in HA mode with the inbuilt Infinispan cache. When a new node is brought up we see that it takes a few minutes for it to be discovered and the cache to sync up with the other nodes. We want to add a readiness check that will keep this node from serving data till the cache is synced up.

How do we go about it? I don’t see any Infinispan tools in the default image. Are there any built in checks or API we can use for this purpose?

we had the same issue. While running on high load, cache sync takes time and consumes high resources. If we had a chance to check sync is done, we could give that as sign to start traffic.

@ dharshanr did you open a case for that request in github keycloak issues?