# Domain setup with HA

**URL:** <https://forum.keycloak.org/t/domain-setup-with-ha/11768>\
**Category:** Configuring the server\
**Created:** [October 28, 2021, 6:01am UTC](https://forum.keycloak.org/t/domain-setup-with-ha/11768 "2021-10-28T06:01:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnkalangha](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@johnkalangha](https://forum.keycloak.org/u/johnkalangha)\
**Post date:** [October 28, 2021, 6:01am UTC](https://forum.keycloak.org/t/domain-setup-with-ha/11768/1 "2021-10-28T06:01:15Z")

</div>

Hi, is it possible to set up a domain clustered with HA, I cant find any tutorial with regards on this.

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [October 28, 2021, 6:43am UTC](https://forum.keycloak.org/t/domain-setup-with-ha/11768/2 "2021-10-28T06:43:04Z")

</div>

HA is not bound to domain or standalone, it’s possible with both.

Domain or standalone mode is just the mode how you manage your nodes.  
With Domain, you have a “classic” (legacy) domain controller / management server, in which you do all the settings and these are then distributed to the nodes configured in the wildfly domain cluster.

If you have a completely scripted/automated/containerized environment, there is IMHO no need for domain mode and all can be done by standlone mode. Standalone means that you do all the config settings and management in each node standalone - but they still can form an HA cluster or course.  
Typcially, when running Keycloak in a Dockerized/containerized environment, all your nodes are standalone nodes.

---

<div class="post-metadata">

**Author:** ![johnkalangha](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@johnkalangha](https://forum.keycloak.org/u/johnkalangha)\
**Post date:** [October 28, 2021, 6:53am UTC](https://forum.keycloak.org/t/domain-setup-with-ha/11768/3 "2021-10-28T06:53:31Z")

</div>

Thank you sir for your reply, question when you dockerized the keycloak can we use domain clustering what we connect to that?

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [October 28, 2021, 7:11am UTC](https://forum.keycloak.org/t/domain-setup-with-ha/11768/4 "2021-10-28T07:11:04Z")

</div>

I don’t have experience with running a dockerized Keycloak in domain mode as this makes IMHO absolutely no sense!

---

<div class="post-metadata">

**Author:** ![johnkalangha](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@johnkalangha](https://forum.keycloak.org/u/johnkalangha)\
**Post date:** [October 29, 2021, 5:23am UTC](https://forum.keycloak.org/t/domain-setup-with-ha/11768/5 "2021-10-29T05:23:20Z")

</div>

i see thank you sir, how about infinispan in dockerized keycloak in standalone ?  
then the default configuration of keycloak dockerized is standalone or Standalone HA?

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [October 29, 2021, 5:51am UTC](https://forum.keycloak.org/t/domain-setup-with-ha/11768/6 "2021-10-29T05:51:08Z")

</div>

Authentication is a single point of failure and thus you have to run it in a high availability cluster. There’s no reason for not doing this in production.
