Horizontal scaling and infinispan cluster

Greetings, I don’t know if here is the right place for this kind of questioning, but here we go:

  1. I may need to support a lot o sessions, and I wan’t to know if I use an out of process Ininispan cluster is better than using an in JVM infinispan, with a lot of heap memory. And how can I mesured the heap size I need versus the number of possible open sessions (this include sessions opened for admin and user actions, like password change and email validation).

  2. What are the recomended jgroups configuration, for resilience, for a large number of running keycloak instances?

  3. That are some way to not lost session information, in an upgrade of keycloak or an problem if I need to restart all cluster, as session information is sotred in memory with inifinispan?

Thanks in advance.

Ricardo Fraga Camelo