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

Question about hotrod-store configuration #22

Open
hwirnsberger opened this issue Oct 5, 2021 · 2 comments
Open

Question about hotrod-store configuration #22

hwirnsberger opened this issue Oct 5, 2021 · 2 comments

Comments

@hwirnsberger
Copy link

Hi,

i have a question about the hotrod-store configuration:
https://github.com/thomasdarimont/keycloak-project-example/blob/main/deployments/local/cluster/haproxy-external-ispn/cli/0100-onstart-setup-hotrod-caches.cli

I testet it with RH-SSO 7.5 and Redhat Datagrid 8.1/8.2 and have the following situation.
When a new session is created, it only stores the session in SSO and not in RHDG.
You can see that with the metrics endpoint.

Is it possible that you test the hotrod-store with your setup and see if the remote cache is used at all?

Best Regards!

@hwirnsberger
Copy link
Author

I think that won't work at all because of: https://github.com/keycloak/keycloak/blob/01a0e11c8f56d265e3ae824221e766b2ac7e215e/model/infinispan/src/main/java/org/keycloak/models/sessions/infinispan/util/InfinispanUtil.java#L44

The implementation only works for RemoteStore.
Or do i overlook something?

@thomasdarimont
Copy link
Owner

I think you are right! The recommended hotrod configuration for wildfly doesn't seem to be supported with Keycloak.
The legacy remote-store configuration (with the additional patch to be able to configure connect timeouts) works quite well: https://github.com/thomasdarimont/keycloak-project-example/tree/main/deployments/local/cluster#run-with-dedicated-infinispan-cluster-with-remote-store

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants