The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » GlassFish

Thread: GF2.1 cluster - requests answered by both instances - load balancing?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 0
chrjohn

Posts: 85
GF2.1 cluster - requests answered by both instances - load balancing?
Posted: May 29, 2009 3:36 AM
 
  Click to reply to this thread Reply

Hi,

I have setup a simple cluster and deployed an application to it. The application has a TimerBean and some other SLSBs, a few queues. Kind of basic stuff.

My question is, if I now start the timer then it fires one time on instance1, then maybe three times on instance2, then again on instance1, yada-yada-yada. The same is for the beans, sometimes a bean from instance1 is taken, sometimes from instance2.

This seems to me like some kind of load-balancing. Can I disable this? Can I configure it in a way that always one instance is taken, unless that instance is down or unreachable?

TIA for any suggestions.
Cheers
Chris.




 XML java.net RSS