ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » QDepth Question

Post new topic  Reply to topic
 QDepth Question « View previous topic :: View next topic » 
Author Message
PhiliB
PostPosted: Wed May 10, 2006 7:16 am    Post subject: QDepth Question Reply with quote

Novice

Joined: 16 Sep 2004
Posts: 21
Location: Portsmouth

Afternoon All

I have a quick question which while i think there is a simple enough answer i just wanted to check to see if there was a more appropiate way to go about this.

Basically we are creating a queue that we wanted to be alerted if anything arrives on this queue. We dont necessarily need the message removed or sent anywhere but notice that one has appeared there.

So an alert using the QDEPTHHI & QDEPTHLO settings was my thinking. However as these are percentages & if the default of '5000' was left for MAXDEPTH i cant see how it would pick up 1 message.

Therefore I was going to recomend that MAXDEPTH was changed to '100' and QDEPTHHI could then be '1'

Does anyone have any other options for alerting when 1 message arrives

Cheers

Phil
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed May 10, 2006 7:18 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

trigger on first?

can you be sure you'll NEVER have more than 100 messages on the queue?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
PhiliB
PostPosted: Wed May 10, 2006 7:40 am    Post subject: Reply with quote

Novice

Joined: 16 Sep 2004
Posts: 21
Location: Portsmouth

Thought about the trigger option which could invoke a small program to place a message on a monitored queue, still checking into that option.
Also I cant be sure, even though its pretty unlikely, that the queue wont receive 100 messages which is kinda why i created this post.

Thanks

Phil
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed May 10, 2006 7:48 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

So, let's be clear.

You have a queue Q1. A message arrives on this queue. When this happens, you want an "alert" to be created.

You do not care about the content of that message, and you do not care if the message remains or not.

This says to me that you should have a process that is triggered on first, removes the message and generates the alert.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Wed May 10, 2006 7:50 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Quote:
Thought about the trigger option which could invoke a small program to place a message on a monitored queue, still checking into that option.


Huh? Isn't that a duplicate effort? The initial queue will already be being monitored by the trigger monitor won't it?

Maybe I am missing the actual issue here.

Why do you want to be notified? Do you want notification every time a message hits the queue or just when the first message hits it? What is the significance of 100 messages? Why set such a small limit at all?

If you are worried about the queue filling up then the real question is what does the business requirement require you to do with the messages? Throw them away? Process them? Redirect them?

These are not questions we can answer but for example you could trigger on first and trigger a process that changes the trigger characteristics on the queue to DEPTH(100) and trigger a different process when it hits 100 messages.
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed May 10, 2006 9:52 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
So an alert using the QDEPTHHI & QDEPTHLO settings was my thinking

If you do ever think of going down this route, then read the manual about how these alerts work. Then read it again. Then sleep on it, and re-read it. They don't work how most people expect.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed May 10, 2006 1:41 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

A. do u need to start a program to eat that message? Use triggering.
B. do u ned to know only that a message is on the queue (q depth > 0)? write a program that inquires on the depth of the queue every x seconds.
C. do you need to know anytime a message lands on the queue, regardless of when or whether something picked it up? or regardless of whether it got backed out? Thenuse Queue Statistics and look at the enqueue count every x seconds.


B and C are typical monitoring functions available in any MQ monitoring tool. We use QPASA to get this info. Or you could write your own.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Nigelg
PostPosted: Thu May 11, 2006 11:17 pm    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Have a look at the Queue Service Interval events.
_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » QDepth Question
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.