Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review cache replicas and clustering #174

Open
megian opened this issue Nov 1, 2022 · 0 comments
Open

Review cache replicas and clustering #174

megian opened this issue Nov 1, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@megian
Copy link
Contributor

megian commented Nov 1, 2022

Context

A quorum is not required according the Keycloak user group. However an odd number might have benefits on split brain scenarios.

A cache owner default value of two is the default configuration. "Each distributed cache has two owners per default, which means that two nodes have a copy of the specific cache entries... When both owner nodes are offline, all data is lost...."

sh-4.4$ grep owners /opt/keycloak/conf/cache-ispn.xml
        <distributed-cache name="sessions" owners="2">
        <distributed-cache name="authenticationSessions" owners="2">
        <distributed-cache name="offlineSessions" owners="2">
        <distributed-cache name="clientSessions" owners="2">
        <distributed-cache name="offlineClientSessions" owners="2">
        <distributed-cache name="loginFailures" owners="2">
        <distributed-cache name="actionTokens" owners="2">

An individual cache-ispn.xml can be configured KC_CACHE_CONFIG_FILE changing the hole Infinispan configuration including the owner number.

So check if there would be benefits of having more cache replicas for certain cluster configurations.

Reference:

Alternatives

Just support a two Keycloak instance clustering

@megian megian added the enhancement New feature or request label Nov 1, 2022
@megian megian self-assigned this Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant