mod_cluster application for load balancing in JBoss cluster - apache

I have to create a system with JBoss in cluster modality with a load balancer using Apache HTTPD with mod_cluster.
I have configured the system correctly, and the load balancer see all nodes of the system. But, I have to create the web application for the load balancer now.
It has to be a servlet or a REST service that has a reference to a remote bean and make a lookup with JNDI? Or is something different?
Can someone provide to me a reference to a documentation/tutorial that explain that?

mod_cluster is a Apache module that does the HTTP(S) load balancing.
Read more here: http://mod-cluster.jboss.org/
The whole application is installed in JBoss mod_cluster just does the load balancing.

mod_cluster is just for load balancing. Just deploy the web app against the server group created. It gets deployed on master and slaves and can access the remote bean as required.

You can dig into our mod_cluster testing servlets on clusterbench/clusterbench or vastly simplified, lobotomized version.
All new documentation effort is accumulated on: http://modcluster.io
TL;DR
create any servlet application
deploy to your workers and it's good to go
if you want web sessions replicated in the cluster, add <distributable/> to your WEB-INF/web.xml

Related

Activex doesn't work with apache balancer

I'm having a problem to run and exe from my browser using ActiveX.
I have Apache balancer and 4 ManagedServer on Weblogic.
The problem is:
Browser---> ServerA IT WORKS open my exe
Browser---> Apache-Balancer---> Server(A,B,C,D) random server DOESN'T WORK my exe doens,t run.
Any help?
Thanks
Carlo
Are you using proxy balancer for load balancing? There might be possibility that session stickiness is not working .Try to configure Apache and weblogic using wls web server proxy plugin for apache which is designed for weblogic load balancing and by default having session stickiness enabled.
Check below link
Http://Middlewaresnippets.blogspot.in/2015/05/working-with-apache-http-server.html

Weblogic vs Apache load balancer

In our typical production environment, Apache web server works as proxy to our application server like weblogic. I have question about load balancing. Both apache and web logic provide its own functionality of load balancing. If apache can balance the load, what is the use of web logic load balancer.
As mentioned in the oracle doc Load Balancing, there are many ways of doing load balancing for weblogic. Should you already have an Apache web server, it is better to use that instead of having Weblogic do the load balancing. The load balancer must typically be off the JVM because the should there be higher traffic, weblogic must have reserve resources for these incidents. Apache does load balancing very easily but weblogic requires more effort as it is an additional feature. Its basically like a boat in water and a car that can also float (the car being weblogic).

How to find which server is serving the request in Weblogic Cluster

Am Weblogic beginner.
I have created an application to test the JNDI load balancing. My application is deployed on Admin server that uses JNDI which is deployed on Cluster containing two servers(MS1, MS2). Know, my question is how can we know which server in the cluster is serving the request to client.
Thank you,
Vardhan

Apache load balancer And JBoss

I am using apache load balancer 2.1 with JBOSS where I have configured 10 jboss nodes to be managed by apache load balancer. Is there any console available in apache load balancer to manage all these nodes and see how many users are handled by each of these nodes when there is some load on the environment?
There is a JKManager console. It is not something mind blowing, but is quite useful.
See:
http://tomcat.apache.org/connectors-doc/generic_howto/loadbalancers.html
http://www.gesea.de/en/techdocs/admin/tomcat/JKManager-Apache-mod_jk-loadbalancer-status-monitor.htm

Do I need to install Tomcat? I have installed JBoss for load balancing with Apache

I'm trying to working on load balancing, so is there a need to install Tomcat as well? Or is JBoss enough with Apache and mod_jk module.
And how can I test load balancing, if it it working or not? Can we have a simple way to test by looking at logs or is there another way?
Tomcat is bundled with JBoss, so there is no need to install it separately. Apache and mod_jk should be enough to load balance JBoss instances.
You can easily confirm that load balancing is working by looking at the JBoss access log files.