Repository navigation
Distributed cache #19674
Distributed cache
#19674
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
Version: Keycloak 21.0.2
TLDR:
When I have two or more keycloaks running I would like them to sync user and permissions, by default they are local cache.
also not sure if the local cache syncs at any time as I can't find any documentation on that.
Im having an issue with the caching specifically realms and users, i am using this page from the docs: https://www.keycloak.org/server/caching
When I have two keycloaks running the user permissions are not syncing between the two of them. I have tried to create a custom cache config and I have switched realms and users to distributed-cache.
in the docker file I am adding the file to the /opt/keycloak/conf/ location and setting ENV KC_CACHE_CONFIG_FILE="custom-cache.xml" and ENV KC_CACHE=ispn
This is my custom file, it is just a copy of the default with the changes made to realms and users:
When I start the containers I am unable to tell if it is using my new file.
I can't seem to figure out what I am doing wrong, Is there an ENV I'm missing? or am I going about this the wrong way.
Any help with this would be much appreciated.
All reactions