|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How many trigger monitor should be used |
« View previous topic :: View next topic » |
Author |
Message
|
wongpcl |
Posted: Fri Dec 06, 2002 10:34 pm Post subject: How many trigger monitor should be used |
|
|
Novice
Joined: 09 Jan 2002 Posts: 23
|
We're planning to use MQ Trigger (Trigger First) to invoke an application to get messages from the triggered queue. We found out the following from the MQ Application Guide.
The trigger monitor will not look to see if there is another message on the
initiation queue until the completion of the application it has just started.
If the application has a lot of processing to do, this may mean that the trigger monitor cannot keep up with the number of trigger messages arriving.
There are two options:
- Have more trigger monitors running
- Run the started applications in the background
The Application Guide suggested to use the 2nd option. But we don't understand the following :
1. Why trigger monitor will trigger the next application without the previous application complete by running the started application in background?
2. How to run the started application in the background on OS/390?
Please advise.
Thanks and regards, |
|
Back to top |
|
 |
bduncan |
Posted: Sat Dec 07, 2002 1:15 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
I can answer your first question.
Imagine that YOU are a trigger monitor. You sit at the keyboard, and I give you a post-it note (MQ message) which you know you're supposed to start an application in order to process. Now you are at a command prompt on your machine, so when you type the name of the application, it starts, and your command prompt is gone. There is no way you can launch any more programs until the command prompt is returned to you, and that won't happen until you exit the program. That is because you started the application in the foreground. If you start an application in the background (on Unix you do this by appending '&' to the end of your command), the application will start, but the command prompt will be immediately returned to you, giving you the ability to launch additional applications. So this way, if I come along with another post-it note before the first one is processed, you can launch additional copies of the application to process it.
I've worked with environments where there were dozens of triggered queues on the same queue manager, with high message throughput, and all the triggering was handled just fine by a single trigger monitor... _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|