JBoss Messaging Slow Consumer Messages Clustering
I have JBoss EAP 5.1.2 (incl. JBoss Messaging 1.4.8) with JMS clustering.
The consumers are slow (several minutes) with various execution time (1-30 minutes) so I enabled the message redistribution (ClusterPullConnectionFactoryName).
My ConnectionFactory attributes are:
<attribute name="SupportsFailover">true</attribute>
<attribute name="SupportsLoadBalancing">true</attribute>
<attribute name="DisableRemotingChecks">true</attribute>
<attribute name="PrefetchSize">1</attribute>
<attribute name="SlowConsumers">true</attribute>
<attribute name="SupportsFailover">true</attribute>
<attribute name="SupportsLoadBalancing">true</attribute>
<attribute name="PrefetchSize">1</attribute>
<attribute name="SlowConsumers">true</attribute>
Of course, the corresponding post office is clustered as well.
However, messages are not distributed equally in the cluster, some nodes are fully loaded, some of them are almost idle.
Please, do you have any hint how to (re)ditribute messages equally in the cluster?
Thanks
Responses
Messages will seldom be distributed equally as messages are not redistributed until the original node they were sent to has no more capacity. The system was designed like this because it is usually much more expensive from a resource point of view to send a message over the network to be proceeded by a remote node.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
