-
1. Re: High Availability of the Domain Controller
wdfink Jul 17, 2012 8:27 AM (in response to jmfaerman)1 of 1 people found this helpfulThere is no JBoss solution for this.
The host controllers are running without a connection to a DC but log warnings.
You might use a DNS or virtual IP addresses to switch the DC.
What I know is that the filesystem is often a shared one, i.e. managed by a SunSolaris cluster software (do not mix the words with a JBoss cluster ).
So the complete filesystem is switched to a hot-standby machine and here the DC (or even a JBoss instance) will be started with exact the same bits.
-
2. Re: High Availability of the Domain Controller
jmfaerman Jul 17, 2012 8:50 AM (in response to wdfink)Pretty much like httpd HA i guess... Red Hat Cluster Suite should do it too
But is it safe to have two (or N) Domain Controllers running and holding the shared domain.xml over NFS?
-
3. Re: High Availability of the Domain Controller
wdfink Jul 17, 2012 9:31 AM (in response to jmfaerman)No because the domain.xml is rewritten in case of any change. Other DC will not reload the configuration based on the XML.
But this is different from what I meant.
The backup DC is only started in case of a crash from the server, with this approach the config will be read at this startup and that should be save.
As a 'normal' JVM crash is handled by the DC itselve, there is a process-controller (different JVM) which restart the DC if necessary. But yes it might happen that this will not work under any circumstances.
-
4. Re: High Availability of the Domain Controller
jmfaerman Jul 17, 2012 9:36 AM (in response to wdfink)Understood.
Many thanks!
-
5. Re: High Availability of the Domain Controller
jerrinot May 1, 2013 9:20 AM (in response to wdfink)Hi,
I'm sorry for openining an answered topic. Is the domain.xml the only file which must be shared between DC instances(installations?) ?
Many thanks!
-
6. Re: High Availability of the Domain Controller
wdfink May 2, 2013 8:06 AM (in response to jerrinot)Hi Jaromir,
yes, you might copy the domain.xml.
But what is better in my opinion is to use the start options --backup and --cached-dc during start In this case JBoss will keep care of what to do.
You can use domain.sh --help to see a description for both.
-
7. Re: High Availability of the Domain Controller
jerrinot May 2, 2013 8:13 AM (in response to wdfink)Hi Wolf,
thanks for your reply. Unfortunately it seems it's the --backup and -cached-dc cannot be used together right now: https://issues.jboss.org/browse/WFLY-773
-
8. Re: High Availability of the Domain Controller
wdfink May 2, 2013 8:33 AM (in response to jerrinot)That's true, but I hope that it will be possible to have a solution where it is detected automaticaly.
For the moment I would start the controller with --backup to duplicate the config and use other mechanism to start the instance as DC with --cached-dc if needed.
This should possible if you have the (standby)DC without any server. You need to restart the backup DC in case of emergency anyway as there is no 'hotstandby' feature and you need to switch IP address also.
-
9. Re: High Availability of the Domain Controller
jerrinot May 2, 2013 12:38 PM (in response to wdfink)That's an interesting option. I'm planning to have a domain.xml on a clustered filesystem (GPFS) + use RHEL Clustering to:
1. ensure that exactly 1 instance of DC is running
2. assign the virtual IP to a box with an active DC
This (hopefully) should make the failover fully automatic. I need to prototype it 1st anyway. Do you see this as a feasable solution?
Thanks!
-
10. Re: High Availability of the Domain Controller
wdfink May 6, 2013 8:13 AM (in response to jerrinot)As far as I see this will be feasable, the (slave)HC's should warn if the DC is dead but should reconnect to the (new) DC as soon as it is available.
If you share the domain.xml you have th share the content folder of the domain also as there are the deployments and other stuff located.
Also I would use the DC without any 'productive' application server instance.