-
1. Re: Load balancing JBoss
jbossnz May 29, 2003 5:24 PM (in response to buckman1)Try jboss 3.2.1 for the latest implementation.
Have you got the -Xms and -Xmx settings correct for your 4GB machine -
2. Re: Load balancing JBoss
buckman1 May 29, 2003 7:29 PM (in response to buckman1)We do have the memory settings correct. Does 3.0.6 not able to cluster? Or is 3.2.1 the recommended one for clustering?
-
3. Re: Load balancing JBoss
slaboure May 30, 2003 9:38 AM (in response to buckman1)1) read the clustering documentation
2) if you want to cluster SLSB or SFSB, you don't need a load-balancer.
Cheers,
sacha -
4. Re: Load balancing JBoss
buckman1 May 30, 2003 2:57 PM (in response to buckman1)Oh I am reading it alright. I must have 300 pages of crap printed out on how to do this.
So if I may ask a silly question, if we plan to deploy in a clustered setup, shouldn't we be developing using one? From what I have read, we can set up a single node in one partition ready to cluster, even though its the only node. When ready, we can add another node and they will automagically become clustered. So, since we know we need to deploy in a clustered setup, would it make sense to set up our dev boxes in this manner so that our jndi settings and such are done in this manner as well? Or is it more advisable to only set up the QA/Staging/Production servers in this setup but leave our dev boxes normal?
I have set up Orion in a cluster and I have to say it was quite a bit easier, although I don't recall if it clustered JNDI and such. Probably not. Ideally I am guessing the best is to cluster JNDI as well, and make sure our code looks up through the various JNDI servers? The reason I ask this is we plan to set up many clients with JBoss clusters. I am wondering if I can just use all the default settings and things will work, or do I need to make changes to a lot of the files for it to work? It seems I can leave the /all folder as it is and get clustering to use the default partition names and such and be ok. The question then becomes, how do we get our client applications to properly contact the two nodes in a given parition? I saw the diagram and read how the proxy load balancing stuff comes back to the client (good stuff by the way as it eliminates a server side point of failure at the load balancer), but for each deployment, I assume we have to set up the jndi.properties file the client app reads in to point to the proper nodes in the partition? -
5. Re: Load balancing JBoss
jbossnz May 31, 2003 9:39 PM (in response to buckman1)> So if I may ask a silly question, if we plan to
> deploy in a clustered setup, shouldn't we be
> developing using one?
Yep sounds good. The app should work on one node, then can test with multiple nodes
>Ideally I am
> guessing the best is to cluster JNDI as well, and
> make sure our code looks up through the various JNDI
> servers?
>The question then
> becomes, how do we get our client applications to
> properly contact the two nodes in a given parition?
> I assume
> we have to set up the jndi.properties file the client
> app reads in to point to the proper nodes in the
> partition?
Yep
setting
java.naming.provider.url=server1:1100,server2:1100
etc in the jndi.properties of the clients should do the trick for your clients (where server1 is the hostname of the first server etc), this is on page 31 of the April 2003 version of the clustering paid for documentation, chapter 4 HA-JNDI.
> I am wondering if I
> can just use all the default settings and things will
> work, or do I need to make changes to a lot of the
> files for it to work?
Yep, not much else to do using the all configuration, other than setting which ejbs should be clustered in the jboss.xml files (page 34 and 35 of the April 2003 version of the clustering paid for documentation, chapter 5, Clustering EJB)
> It seems I can leave the /all
> folder as it is and get clustering to use the default
> partition names and such and be ok.
Yep, the only thing is if you want farming (chap 7 Farming,April 2003 version of the clustering paid for documentation) your ear file should be dropped in the /all/farm directory rather than the /all/deploy directory (for jboss3.2.1). If this farm directory isn't there, it will be created the first time you run jboss with the all configuration -
6. Re: Load balancing JBoss
slaboure Jun 1, 2003 5:55 AM (in response to buckman1)
Pff.. I have to admit that it is a little bit frustrating...
You say "it was easier in Orion and bla bla bla" but you don't take 10 minutes to read the doco but instead keep asking trivial questions showing that you don't know at all how it works. How can you measure if it is easier or more difficult if ... you don't know!
For your deployment question (development vs deployment), you can work in a non-clustered environmment for your development and that's fine. But for your pre-production env, I strongly encourage to do lots of clustering testing. Other reasons are:
- you have to find the best way for you to deploy your environnement
- learn how to react in case of problems
- check if you need specific performance improvments since cache (for example) cannot be in Commit Option A most of the time.
- ...
Cheers,
sacha -
7. Re: Load balancing JBoss
buckman1 Jun 2, 2003 12:54 PM (in response to buckman1)Sacha,
Ouch, a bit touchy on this topic heh? ;) Not to worry, I agree with you. I have read about 1/2 of the doc so far, and thus my previous post is invalid if it turns out all I need to do is use the /all dir and things will work (other than the jboss.xml changes). Don't be too upset, Jboss rocks! I wouldn't have switched from Orion if I didn't think so. I just recall Orion was very simple to cluster, although it didn't work very well last I tried. Getting it to work was easy, only two simple changes. It must have been buggy, because it didn't always work.
Non the less, after reading more, I am seeing that JBoss may be easy to cluster as well. Sorry to offend. -
8. Re: Load balancing JBoss
slaboure Jun 3, 2003 1:45 PM (in response to buckman1)That was me, an hormonal spike maybe ;)
Cheers,
sacha