-
1. Re: Load balancing WildFly servers
pferraro Feb 3, 2015 7:03 PM (in response to valsaraj007)That's a pretty vague request. What kind of requests do you want to load balance?
-
2. Re: Load balancing WildFly servers
valsaraj007 Feb 4, 2015 12:12 AM (in response to pferraro)Hi Paul,
I will make it clear.
I want to check this first in my local machine. For that I need 2 WildFly servers running on my machine and fronted by Apache server. Apache will receive request and send it to one of these WildFly servers based on load balancing model. I have tried earlier on JBoss 4.2 with mod_jk and mod_proxy. Now I migrated code to WildFly. I want to know better option to use with WildFly.
Once it worked well we need to apply it in our staging platform with multiple machines with WildFly instance on each machine instead of running multiple WildFly instances on single machine.
Let me know if you need any more clarifications.
Thanks!
-
3. Re: Load balancing WildFly servers
valsaraj007 Feb 4, 2015 1:36 AM (in response to valsaraj007)1 of 1 people found this helpfulI found a page with many details High Availability Guide - WildFly 8 - Project Documentation Editor. But mod_jk part is not documented.
Found a link for mod_jk, http://www.mastertheboss.com/jboss-server/jboss-cluster/configuring-modjk-with-wildflyjboss-as-7.
-
4. Re: Load balancing WildFly servers
ctomc Feb 4, 2015 9:02 AM (in response to valsaraj007)1 of 1 people found this helpfulYou can still use mod_jk & mod_proxy if you want.
But in wildfly you can go with mod_cluster which is an much more intelligent LB/proxy as it can also talk back to apache to tell what resources are available and what not, so apache wont forward request unnecessary.
In my personal opinion If you don't go with mod cluster I would recommend to ditch apache all together and take a look at nginx for load balancing proxy as it is much more powerful, lightweight and easier to configure.
-
5. Re: Load balancing WildFly servers
valsaraj007 Feb 5, 2015 1:49 AM (in response to ctomc)Thanks much Tomaz!
Let me check mod_cluster and nginx.
-
6. Re: Load balancing WildFly servers
kpreeta12 Jun 7, 2017 10:12 AM (in response to valsaraj007)Hi Valsaraj,
I could use the nginx as load balancer for JMS hornetq cluster on wildfly 8.2 app server. nginx supports http-remoting and hence it worked.
But now i am upgrading to wildfly 10.1-Final version which can itself serve as load balancer. Please go through JMS Clustering with Wildfly-10.1 application when you find sometime. I actually wanted to know how we can use the wildfly-10.1 load-balancer to communicate with JMS cluster on wildfly 10.1 using the JMS-jndi url as http-remoting://<ip-address-cluster:port>. Basically, I would like to know if we can replace the ajp entries in wildfly-10.1 load-balancer with http-remoting.
Thanks in advance,
-preeta