-
1. Re: HornetQ, Wildfly Domain Mode, HA and/or Load Balancing
jbertram Apr 1, 2015 10:30 PM (in response to jlar310)In domain mode you can pass system properties to each host so even though they use the same config they can have unique configurations per host. See here for more details.
In simple terms, HornetQ HA is provided via a live-backup pair and load-balancing is provided via a cluster. If you want both HA and load-balancing then you will need 2 live-backup pairs clustered together. There are several ways to do this. First, you can have 4 instances of Wildfly each configured with 1 instance of HornetQ each as a live or a backup which all part of the same cluster. This is typically called a "dedicated" topology. Second, you can have 2 instances of Wildfly each configured with 2 instances of HornetQ (i.e. both a live and a backup in the same instance of Wildfly). This is called a "colocated" topology and there's an example of this shipped in <WILDFLY_HOME>/docs/examples/configs/standalone-hornetq-colocated.xml.
-
2. Re: HornetQ, Wildfly Domain Mode, HA and/or Load Balancing
jlar310 Apr 2, 2015 7:59 AM (in response to jbertram)Thank you. Collocation is the search term that eluded me. Not as clean a solution as I was hoping for, but it looks like it will work. I considered using system properties to designate a backup, but in the Web console, the option is a check-box so I feared a system property value would get overwritten if not careful.
-
3. Re: HornetQ, Wildfly Domain Mode, HA and/or Load Balancing
jbertram Apr 2, 2015 9:51 AM (in response to jlar310)In future versions the colocation stuff is much simpler (e.g. a live server can spin up a backup in the background with minimal configuration).
-
4. Re: HornetQ, Wildfly Domain Mode, HA and/or Load Balancing
cennore Nov 20, 2015 11:46 PM (in response to jbertram)Hi jbertram,
Can the example cited at WILDFLY_HOME/docs/examples/configs/standalone-hornetq-colocated.xml be used in configuring the hornetq config in domain.xml for the desired profile in use?
Also how do I define the backup or live servers in host.xml? I checked the link you posted but really couldn't find anything specifically helpful.
Would really appreciate if you could post examples or give really clear explanations; apologies but I'm totally new to the world of clustering/load-balancing and trying to find my feet.
Thanks!
-
5. Re: HornetQ, Wildfly Domain Mode, HA and/or Load Balancing
jbertram Nov 21, 2015 8:55 PM (in response to cennore)Can the example cited at WILDFLY_HOME/docs/examples/configs/standalone-hornetq-colocated.xml be used in configuring the hornetq config in domain.xml for the desired profile in use?
I don't see why not.
Also how do I define the backup or live servers in host.xml? I checked the link you posted but really couldn't find anything specifically helpful.
I'm not sure what you're asking. If you're using a colocated configuration rather than a dedicated configuration then each Wildfly instance will have a live and a backup so you won't need to make one server a live and one a backup.
Would really appreciate if you could post examples or give really clear explanations; apologies but I'm totally new to the world of clustering/load-balancing and trying to find my feet.
I don't have the bandwidth to provide step-by-step instructions and examples. My advice to you would be to start simple. If you're totally new to this then don't try to tackle a domain configuration or even a colocated configuration right at first. Start with something simple like a live/backup pair of Wildfly instances and then work up from there. In other words, don't jump into the deep end if you can't swim.