Apache load balancer And JBoss - apache

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

Related

Is fronting Tomcat by Apache http server meaningful when we are using aws application load balancer

I know fronting Tomcat by Apache has some security benefits when we are using aws classic load balancer. However, I was wondering if it is meaningful to front Tomcat by Apache http server, when we are using aws application load balancer? Because an application load balancer operates at Layer 7 of the OSI model, and deals with application-level content.
It depends on your intention. Fronting tomcat is not an issue when you go with AWS and ALBs are good way to handle and route your traffic. Therefore, stick to ALB rather than ELB and maintaining an Apache layer.

mod_cluster application for load balancing in JBoss cluster

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

how to implement failover of apache httpd that is working as the loadbalancer for multiple tomcat instances

I am implementing almost 3 tomcat instances with the load balanced by apache httpd and mod_jk in on single machine. I also configured session affinity and session replication in the tomcat instances. So, even though, any one of the 3 tomcat instances goes down, there would be no worry.
But as I am balancing the load for 3 tomcat instances by a single apache httpd, if the apache httpd fails and if its service goes down, then it becomes again a single point of failure.
So, how to get rid of this problem? How can I do failover of the apache httpd which inturn works as the load balancer for multiple tomcats.
I have used cloud load balancers before (AWS). And they passed East US power failure. google

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).

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.