keycloak / keycloak-benchmark

Keycloak Benchmark
https://www.keycloak.org/keycloak-benchmark/
Apache License 2.0
125 stars 68 forks source link

For persistent sessions, deploy Infinispan with maxCount memory setting in user/client sessions cache #805

Closed ahus1 closed 1 month ago

ahus1 commented 2 months ago

Description

Once persistent sessions are enabled, not all entries need to be in memory for Keycloak.

The same should be done for the external Infinispan, where also only a subset should be kept in memory.

Discussion

https://github.com/keycloak/keycloak/pull/29347

Motivation

Don't exhaust Infinispan's memory.

This is already in the docs. To make sure that it works this should be part of the scripts in the KCB project.

Details

No response

mhajas commented 2 months ago

We should also change the number of owners to 1 for all four session caches to be on par with the HA guide. https://github.com/keycloak/keycloak/blob/3ecc564575158fd79fef271757c8666d0d9c67df/docs/guides/high-availability/deploy-infinispan-kubernetes-crossdc.adoc?plain=1#L170-L177