Author |
Message
|
senMQ |
Posted: Fri Aug 24, 2007 11:39 am Post subject: Message priority |
|
|
Acolyte
Joined: 14 Aug 2006 Posts: 66 Location: Palo Alto, CA
|
We are planning to set up higher message priority for messages sent by one of our application. In a clustered environment, would these messages zip through the cluster transmit queue before other messages. Also, I anticipate a very high volume of messages of this type. So, does that ean that it is going to slow down the other messages? |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Aug 24, 2007 12:00 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
yes and yes, if you have so many of them that the channels are always sending the higher priority ones and only occasionally catch up to the point where there are no other hi priority messages so they finally get to the lower priority ones. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
hin3407 |
Posted: Thu Sep 06, 2007 7:14 am Post subject: |
|
|
Centurion
Joined: 17 Oct 2006 Posts: 120
|
Actually, that is not necessarily true. Higher priority messages will not be sent across a channel faster than those that are lower priority, iff there is a backlog of messages on the XMITQ. If the XMITQ does not backup, than higher priority messages will not arive any faster.
Additionally, on the consuming side. If the dequeue rate is just as fast as the enqueue rate, than again, message priority is irrelevant. It will only occur if the dequeue rate is slower than the dequeue rate.
Cheers.
hin3407 |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Sep 06, 2007 7:28 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
hin3407 wrote: |
Higher priority messages will not be sent across a channel faster than those that are lower priority, iff there is a backlog of messages on the XMITQ. |
Yes they will.
hin3407 wrote: |
If the XMITQ does not backup, than higher priority messages will not arive any faster. |
Correct. FIFO in action. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Sep 06, 2007 7:28 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Messages dequeued from a queue that has been opened to return messages in Priority Order will be delivered off the queue in order of priority.
The next message delivered is always the first message in the queue with the highest priority.
This applies for messages coming off of the XMITQ as well. I believe it is well documented that the MCA reads the XMITQ in priority order.
If the XMITQ is completely empty, and the channel batch size is small enough or the batch interval is small enough, then messages may get shipped across the channel in FIFO order - because there is never more than one message on the queue when the MCA issues an MQGet. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
hin3407 |
Posted: Thu Sep 06, 2007 7:31 am Post subject: |
|
|
Centurion
Joined: 17 Oct 2006 Posts: 120
|
Your first comment is not correct. Show me evidence of where that would be true and false.
The only way that would be false, is if there is a backlog of messages on the xmitq, otherwise, message priority is irrelevant. |
|
Back to top |
|
 |
hin3407 |
Posted: Thu Sep 06, 2007 12:57 pm Post subject: |
|
|
Centurion
Joined: 17 Oct 2006 Posts: 120
|
yup, that sums up everything i said. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Sep 06, 2007 4:38 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
hin3407, what I said is correct and agrees with what Jeff said.
You wrote:
Quote: |
Higher priority messages will not be sent across a channel faster than those that are lower priority, iff there is a backlog of messages on the XMITQ.
|
That is wrong. If there is a backlog, higher priority mesages WILL be sent across first.
senmq asked:
Quote: |
We are planning to set up higher message priority for messages sent by one of our application. In a clustered environment, would these messages zip through the cluster transmit queue before other messages.
|
And I said yes. "before other messages" In this case I took "other messages" to mean lower priority messages in the XMITQ a.k.a there is a backlog on the XMITQ. Otherwise those "other messages" don't exist yet or are sitting in local queues and are irrelevant. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Sep 06, 2007 5:19 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I think, to be fair..
what I said properly sums up what hin3407 thought hin3407 said... and not what was actually written.
I tend to do this kind of thing a lot myself - where somehow betwixt brain and fingers, the words get jumbled or the sentences get jumbled.
For example, I nearly typed "hin037" rather than "hin3407". _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
hin3407 |
Posted: Thu Sep 06, 2007 6:41 pm Post subject: |
|
|
Centurion
Joined: 17 Oct 2006 Posts: 120
|
okay, you are summarizing everything i said.
btw.... "iff" means, if and only if, not "if"
So read that again, and its everything you said.
cheers. |
|
Back to top |
|
 |
|