You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by pankajtakawale <pa...@gmail.com> on 2012/08/19 17:52:36 UTC
JMSXGroupID any settings to free consumer to handle same groupid
Topology:
ActiveMQ Master has two consumers (each consumer is nothing but broker)
Each broker has 25 consumers.
Scenario:
Consumer-13 belongs to broker1
Consumer-13 consumes JMSXGroupID G1 message.
COnsumer-13 consumes several other groupids due to heavy load.
Broker2 is almost idle after an hour (due to JMSXGroupID feature, activemq
has to route messages to same consumer)
Within last hour there was not a single event for JMSXGroupID G1.
Now after an hor if producer sends message with JMSXGroupID G1, why activemq
is not assigning to idle broker2?
Is there any other way to achieve this - to tell activemq to forget consumer
for a groupId if it did not receive message for past N seconds?
I can not close groupId by setting "JMSXGroupSeq=-1", because I dont know if
any consumer is still processing or activemq still has any message pending
for that group, or by the time I close if any other thread is going to
generate a message for same group.
--
View this message in context: http://activemq.2283324.n4.nabble.com/JMSXGroupID-any-settings-to-free-consumer-to-handle-same-groupid-tp4655289.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: JMSXGroupID any settings to free consumer to handle same
groupid
Posted by ceposta <ch...@gmail.com>.
There isn't a timeout for JMSXGroupID as far as I can tell.
I wonder if you could listen to advisories for a particular destination and
log last-seen group ids? and then send the -1 group sequence after your
desired timeout?
-----
http://www.christianposta.com/blog
--
View this message in context: http://activemq.2283324.n4.nabble.com/JMSXGroupID-any-settings-to-free-consumer-to-handle-same-groupid-tp4655289p4655368.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.