clustering --begginer
Hi,
Its a HUMBLE REQUEST TO THE EXPERIENCED persons.
I am new to clustering. My objective is to attain clustering with load balencing and/or Failover in JBoss server. I have two JBoss servers running in two diffferent IP addresses which form my cluster. I could succesfully perform farm (all/farm) deployment
in my cluster.
I do believe that if clustering is enabled; and if one of the server(s1) goes down, then the other(s2) will serve the requests coming to s1. Am i correct? Or is that true only in the case of "Failover clustering". If it is correct, what are all the things i have to do to achieve it?
As i am new to the topic,can any one explain me how a simple application (say getting a value from a user and storing it in the database--assume every is there in a WAR file),can be deployed with load balencing and failover support rather than going in to clustering EJB or anything difficult to understand.
Kindly help me in this mattter. Atleast give me some hints and i ll learn from that.Becoz i could n't find a step by step procedure explainingwhich configuration files are to be changed to achieve this (and how) for achiving this. Also i could n't find Books explaining this rather than usual theorectical concepts.
Thanking you in advance
with respect
abhirami
[1387 byte] By [
abhiramia] at [2007-11-26 18:05:09]

# 1
Abhirami,
You'll have to excuse my ignorance of JBoss, all I (think) I know about it is it's an application server.
In general, you cannot take any application and turn it into a scalable application by adding clustering. It just doesn't work that way. For example, you can't take a database, say, postgres, and make it a parallel database by adding clustering because it is a highly stateful application. However, you can take http and do this because each web 'transaction' is independent of the previous request. Therefore, you can run one scalable address and have one web server listening on that address on each cluster node.
So, back to your JBoss question. If JBoss is amenable, you could set it up so that both JBoss servers listened to the same shared address and serviced the requests independently. If one server failed, the remaining server would handle all the load. You would probably have to set up the load-balancing to be 'wildcard sticky' so that a particular client had it's connections serviced by a single JBoss server, but overall, the entire client population would be distributed between the servers.
As far as set up goes, look at the set up for a scalable web server in the manuals. See
http://docs.sun.com/app/docs/doc/819-2990/6n588lstc?a=view
Hope that helps to some degree.
Tim