Keycloak cluster using DB

106 views
Skip to first unread message

Hugo Garcia

unread,
Aug 12, 2025, 11:43:42 AMAug 12
to Keycloak User
Good morning every one.
I want to share with you my problem and I believe that with your help, we can solve it.
Right now I have one server with docker and inside I have my aplication with diferent images (backend, frontend...), I have nginx (to redirect internally the traffic) and I have keycloak (version 23.0.3) all of these items are under one DNS with other nginx.
I have one external cluster with my keycloak database.

Right now, I need to add other identical server to my instalation and I need to share all things of keycloak between both servers, to avoid errors with the keys, tokens, authentications....

I need to create a cluster using the database because by security reasons both servers are separated in differents networks, so I cannot use TCP cluster.

I made some tests, with files, without files, I tried everything before come here but...right now I cannot proceed with this configuration but I know that it´s possible...

Could someone help me about this?

Thanks in advance. Best regards.

Alexander Schwartz

unread,
Aug 19, 2025, 8:08:15 AMAug 19
to Hugo Garcia, Keycloak User
Hello Hugo,

Can you describe the reasons "I need to add other identical server to my installation" and what you want to achieve by that? 

If "server" is a Keycloak server, there are some rules: Either you have a single Keycloak server, and share it with all your applications, or you have multiple Keycloak server and you create a Keycloak cluster where you have communication between your nodes. 

As KC 23 is quite old, you should probably plan to update KC as the clustering became simpler in the more recent releases.  

Best,
Alexander

--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/keycloak-user/375920ac-bca6-4ca8-9dfa-87ae341f4664n%40googlegroups.com.


--

Alexander Schwartz, RHCE

He/Him

Principal Software Engineer, Keycloak Maintainer

alexander...@ibm.com


IBM Data Privacy Statement 


IBM Deutschland Research & Development GmbH

Vorsitzender des Aufsichtsrats: Wolfgang Wendt

Geschäftsführung: David Faller

Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294

Reply all
Reply to author
Forward
0 new messages