[jboss-user] [JBoss Messaging] - Re: Message Redistribution on a Cluster

timfox do-not-reply at jboss.com
Fri Sep 19 09:28:28 EDT 2008


"tim.shaw" wrote : T
  | My question then becomes - How does JBM determine when the load is too great for the initial machine?
  | 

Each consumer has a client side buffer of messages (see prefetchsize), when that buffer is full the consumer is deemed "busy", and won't be sent any more messages.

So.. once the local consumers buffer is full, then and only then will it allow remote consumers to consume from the queue. So the local consumer will always get messages as long as it can consume them fast enough.

if you blindly round-robin'd to remote machines when the local consumer was fast enough then that would be inefficient since you'd be incurring extra unnecessary network traffic.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177667#4177667

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177667



More information about the jboss-user mailing list