简体   繁体   中英

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM