Load balancing/distribution and failover in JBOSS
Posted on 2004-11-09
I need to develop/use/configure an application server for a JAVA application that I have designed. The application handles both requests from another application server via CORBA as well as from the internet (HTTP).
I would like to use an open source application server like JBOSS in a clustered duplicated configuration.
The two main criterion in the design/configuration of the AS are load balancing and failover. My questions are:
1) What is the best way to achive load balancing (based on processor load) from the CORBA side? The requesting application server can be set up to send request to two nodes, a primary and secondary but it will only send to the secondary if the primary is down, so I need a mechanism to distribute requests equally between the servers.
2) What is the best way to achieve load balancing on the WEB side?
3) How can I manage failover on the CORBA side. Requests from the CORBA side comes in sessions so there is a need to somehow make sure that the second server has access to data stored by the first server in a request from an earlier session (assuming the first server has died in the meantime).
4) What is the best mechanism to manage failover, HTTP, RMI, or EBJ (or other)? I guess HTTP might be good enough for the web side, but I do not think it will work on the CORBA side?!?
Thanks in advance