Replies: 1 comment 3 replies
|
Hi @DimaShaar , I hope you are doing well ! To answer your question directly: Yes, excluding COMPONENT_CONFIG from database replication is almost certainly the root cause of the issues you are seeing. In a clustered Keycloak setup, Keycloak expects all active database nodes to hold a 100% identical and fully replicated schema. Asynchronous/partial replication (or selectively excluding tables) is not supported in Keycloak HA architectures. About the specific table Attached Keycloak Multi-Cluster High Availability documentation, Keycloak requires a unified, fully synchronously replicated database (if this helps) . Thanks |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
We are running the following environment:
Keycloak 26.3.1
MariaDB Active-Active replication
LDAP / Active Directory User Federation
Clustered Keycloak deployment
We recently observed an unexpected situation where a user who was previously working correctly appeared to have missing profile information and role assignments.
Additionally, we have seen cases where updates made to user attributes from Keycloak were stored in the Keycloak database but were not reflected in Active Directory.
Our database team informed us that the following tables are excluded from replication:
COMPONENT_CONFIG
OFFLINE_USER_SESSION
OFFLINE_CLIENT_SESSION
EVENT_ENTITY
ADMIN_EVENT_ENTITY
My main question is regarding COMPONENT_CONFIG.
Since this table contains federation and mapper configuration, could excluding it from database replication cause any of the following?
LDAP federation inconsistencies between nodes
Mapper configuration differences
User attribute synchronization issues
Missing user attributes
Missing role mappings or unexpected user visibility issues
Are there any documented recommendations, limitations, or known issues regarding Active-Active database replication and the replication of COMPONENT_CONFIG in Keycloak deployments?
Any guidance or similar experiences would be appreciated.
Thank you.
All reactions