Repository navigation
Connecting 2 standalone keycloak servers to the same MySQL server #33779
Replies: 3 comments 14 replies
|
Not everything is persisted to the DB currently; things like authentication sessions are not (that would require a user that is in the middle of login to have to start from the beginning), as well as counts for brute force login protection (which is probably just fine to loose during a failover scenario). One thing you would need to make sure is that the backup cluster has empty caches when you switch; there's not the most elegant support for this currently, but you can invoke the cache clear endpoint in admin endpoints. @ahus1 FIY |
|
Assuming this documentation is correct, I'm having a hard time clearing caches in keycloak What is going on? Have the endpoints changed? I could not find any cache endpoints in the official "Keycloak Admin REST API". |
|
With keycloak 25.0.4, after clearing the caches of all keycloak realms of the backup server, pinning the R/O MySQL replica on the backup keycloak server fails with: I'll try with more recent keycloak versions and I'll let you know. |
Uh oh!
There was an error while loading. Please reload this page.
I'd like to run by you a very simple H/A architecture with 2 standalone keycloak servers which are behind load-balancers and are connected to the same MySQL R/W server. I am aware that this prevents any cache replication between both keycloak servers.
All reactions