Keycloak Clustering

68 views
Skip to first unread message

Deeps Kiren

unread,
Sep 23, 2021, 2:28:46 PM9/23/21
to Keycloak Dev

Hi,
      I have one application running using Wildfly and I have configured keycloak for authentication. Now I want to setup a fail over for keycloak instance, ie, I am planning to use 2 keycloak instances for the same wildfly application. If one keycloak is not working, the application should automatically authenticate using the second keycloak instance. Can we use keycloak clustering for this? I am planning for a  Standalone Clustered Mode. Can anyone help me with this, mainly about setting haproxy(setting  X-Forwarded-For and  X-Forwarded-Proto)?  I am planning to use 3 servers, A for haproxy, B for wildfly and one keycloak instance, C for second keycloak instance.  Tried out steps from https://www.keycloak.org/docs/latest/server_installation/#_clustering , but didnt work.

Thanks & Regards,
Deeps.

Thomas Darimont

unread,
Sep 23, 2021, 3:06:02 PM9/23/21
to Deeps Kiren, Keycloak Dev

--
You received this message because you are subscribed to the Google Groups "Keycloak Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/a9537e03-26b9-469b-ab8b-e8b4bbf5389dn%40googlegroups.com.

Deeps Kiren

unread,
Sep 24, 2021, 4:38:30 AM9/24/21
to Keycloak Dev
Thank you Thomas. I will try this.

Deeps Kiren

unread,
Sep 24, 2021, 2:25:00 PM9/24/21
to Keycloak Dev
Hi Thomas,

                 I checked the link, it is given as copy the acme.test*.pem files from the config/stage/dev/tls into the haproxy director, but I couldn't find  acme.test*.pem inside the path https://github.com/thomasdarimont/keycloak-project-example/tree/main/config/stage/dev/tls and I could only find a .gitkeep file in that path. I am new to this, so not sure if I am doing it correctly. Please help.

Thanks in advance,
Deeps

Thomas Darimont

unread,
Sep 24, 2021, 2:40:12 PM9/24/21
to Deeps Kiren, Keycloak Dev
Take a look at the readme in the project.

Cheers,
Thomas

Reply all
Reply to author
Forward
0 new messages