Link to home
Start Free TrialLog in
Avatar of mxgong
mxgongFlag for Australia

asked on

Jboss EAP 6.4: 2 domain controller failover

HI EE

I'd like to create the following Jboss topology environment.

Jboss EAP 6.4

2 x Domain controller failover
2 x slave node hosting 3 servers

I know how to configure 1 domain with 2 slave node, but for 2nd DC for failover, anyone can give me some guide?

Thanks
Avatar of girionis
girionis
Flag of Greece image

Why do you need two domain controllers? If a domain controller crashes neither the host nor the servers go down; they keep serving.

In any case, you can start multiple domain controllers if you use the jboss.domain.base.dir switch: -Djboss.domain.base.dir=<different domain path each time>
Avatar of mxgong

ASKER

Hi Girionis

Thanks for your reply.

How would failover works betewwn this two domain comtrollers?

I understand, you can just promoted hc to dc if current dc is down, but this is not what we expected. We want to have 2 dc for failover.

Thanks
Each host controller registers itself with the domain controller. If you have two domain controllers and you want the *same* host controller to register with them, I am not sure how you can do it. You can try to pass comma delimited IPs, but I am not sure if this will work.

BTW why do you need two domain controllers?
Avatar of mxgong

ASKER

Hi Girionis

I have drawn a simple topology for 2 DC and 2 Slave nodes, in attachment

Please advice.

Thanks for your help.
infra.PNG
I do not think you can do what you're asking. Each host controller can connect to one master.

Why do you need the topology you're describing? Do are you trying to do?
Avatar of mxgong

ASKER

Thanks, Girionis

I think the issue would be the domain.xml, unless this two domain controller share with same domain.xml in filesystem?

RHEL doc stats:
<discovery-options>  
              <static-discovery name="primary" host="<DC-1-IPAddress>" port="9999"/>  
              <static-discovery name="backup" host="<DC-2-IPAddress>" port="9999"/>  
 </discovery-options>

If primary and backup as two DC, will work?
It might work. Also try to start a host controller with the --backup flag, forcing it to maintain a local copy of the domain configuration.
Avatar of mxgong

ASKER

Thanks Girionis

Just one more question, by using this setup, it mean, i will need a hc (DC-2) start up with --backup flag, then it will keep a domain.xml copy locally in DC-2. The questions:

* with this flag: --backup, does it mean the settings is made in DC-1 will be automatically synced to DC-2?
* when DC-1 is down, do I need to stop the current service in DC-2, and start it again by using --cached-dc flag?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mxgong

ASKER

HI Girionis

Thanks for your all help. i think this would be enough for me now.

Cheers

Mick