3 Replies Latest reply on Jul 7, 2015 12:11 PM by luck3y

    Domain Controllers in clustered "domain" mode(Not HA)

    cirix

      Hi guys,

      reading through out the manual of wildfly, it's clear that in the domain mode, only one node can act as the leading domain controller, who has full knowledge of the cluster. Can it be done that I can have two Domain controllers that setup two different clusters but are aware of both of them?So in case one is not available the other can step in? From my understanding currently only one domain controller can exist, when domain mode is running.

       

      kind regards

      Nick

      jason.greene arungupta

        • 1. Re: Domain Controllers in clustered "domain" mode(Not HA)
          tomekadamski

          Hi Nikos,

          You are able to specify multiple remote hosts in slave's domain controller tag.

          For example:

           

          <domain-controller>

             <remote host="192.168.0.101" port="9999" username="slave" security-realm="SlaveRealm"/>

             <remote host="192.168.0.102" port="9999" username="slave" security-realm="SlaveRealm"/>

          </domain-controller>

           

          When domain controller goes down you have to manualy promote one slave (192.168.0.102 in above configuration) to the domain controller role. The domain configuration is send to the whole domain so the host would have it already. We are currently working on automatic backup slave promotion. I will find out and let you know when it will be available.


          Tomek

           

           

          • 2. Re: Domain Controllers in clustered "domain" mode(Not HA)
            cirix

            Hi Tomasz,

            the trick here is, that based on the needs I have this propagation should happen automatically. Imagine you are deploying a solution using wildfly 9.0. in a cluster that operates under a  data center operating system, like Apache Mesos. In case of failure the O.S. is responsible for fixing the state of the cluster as it used to be, thus there are no guarantees that these ip's will be the same. So it would be cool, if we could support something like auto discovery mode. Of course you need an initial bootstrap, but in cloud dynamic envs, where the life span of nodes can't be taken for granted(look up abou the 8 fallacies of distributed systems) static and full state behaviour is not helping alot. If that's recoverable then you are a step closer. Thanks for letting me know.

             

            kind regards

            Nick

            • 3. Re: Domain Controllers in clustered "domain" mode(Not HA)
              luck3y

              Hi Nikos,

               

              You can use hostnames in place of those IPs, if that helps any. We're currently working on some enhancements to improve dynamic failover etc, in this situation, there should be more information soon.

               

              Ken