Author |
Message
|
jeevan |
Posted: Sat Feb 18, 2006 6:06 am Post subject: does more than one listener increases performance |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
Does more than one listener increase performance? Technically, how many listener can be run for a queue manager? |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Feb 18, 2006 7:15 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
As many as your system's IO management will support.
Does it make sense ?
Usually one Listener is enough unless you have to handle very heavy IO or you want to segment authorizations.
Say for instance you have set specific authorizations for user xyz on your qmgr and you are going to run the listener under xyz's id. Any operation that xyz is not approved for will be rejected. Make sure xyz has authorization to put to the DLQ...
If xyz has no authorizations and you try to run a rcvr channel in it will look like if the qmgr is not available from the sender's perspective...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
PeterPotkay |
Posted: Sat Feb 18, 2006 7:39 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
fjb_saper wrote: |
Say for instance you have set specific authorizations for user xyz on your qmgr and you are going to run the listener under xyz's id. Any operation that xyz is not approved for will be rejected. Make sure xyz has authorization to put to the DLQ...
If xyz has no authorizations and you try to run a rcvr channel in it will look like if the qmgr is not available from the sender's perspective... |
The same can be accomplished with one listener, and then simply coding the specific IDs in the RCVR channels' MCAUSER field.
A listener has a limited number of outstanding connection attempts it can handle (see ListenerBackLog in the qm.ini file). If this threshold is exceeded, as it could easily be in a Denial of Service attack, all MQ connections will be refused. We use a dedicated listener for each connection to other companies. By running dedicated listeners for each outside partner Queue Manager, this threat is eliminated. If we need to stop any and all MQ connection attempts from a particular company, it is a simple matter to shutdown their listener. While other connections from other companies remain uneffected. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Feb 18, 2006 3:31 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Thanks Peter I had forgotten that one. Of course it is the most important reason.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
TJo |
Posted: Thu Feb 23, 2006 8:01 am Post subject: |
|
|
 Novice
Joined: 26 Jul 2004 Posts: 18 Location: Gothenburg Sweden
|
PeterPotkay wrote: |
If we need to stop any and all MQ connection attempts from a particular company, it is a simple matter to shutdown their listener. While other connections from other companies remain uneffected. |
But how do you stop the listener without stopping the qm first? As far as I have seen (on *IX only) the qm must be stopped before the listeners.
Regards /TJo _________________ "Always code as if the guy who ends up maintaining your code will be
a violent psychopath who knows where you live." --Martin Golding |
|
Back to top |
|
 |
wschutz |
Posted: Thu Feb 23, 2006 8:10 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
With V6 of MQ, you can define listener objects (define listener), and start and stop them at will.....
otherwise I would think "kill" would do it. _________________ -wayne |
|
Back to top |
|
 |
Tibor |
Posted: Thu Feb 23, 2006 9:00 am Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
TJo wrote: |
But how do you stop the listener without stopping the qm first? As far as I have seen (on *IX only) the qm must be stopped before the listeners. |
You can stop the listener with this command: endmqlsr -m <qmname> -f (=force) on a v5 queue manager.
Tibor |
|
Back to top |
|
 |
wschutz |
Posted: Thu Feb 23, 2006 9:06 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Tibor wrote: |
TJo wrote: |
But how do you stop the listener without stopping the qm first? As far as I have seen (on *IX only) the qm must be stopped before the listeners. |
You can stop the listener with this command: endmqlsr -m <qmname> -f (=force) on a v5 queue manager.
Tibor |
doesn't that stop all listeners for the qm? _________________ -wayne |
|
Back to top |
|
 |
mvic |
Posted: Thu Feb 23, 2006 9:17 am Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
|
Back to top |
|
 |
Tibor |
Posted: Thu Feb 23, 2006 9:30 am Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
Well, it does all instances. But TJo's question was about only the stopping
However, when you execute a stop listener command, what about the process pooling process (amqrmppa)? Sometimes these processes don't stop after an endmqlsr
Tibor |
|
Back to top |
|
 |
jpeela |
Posted: Mon Feb 27, 2006 1:26 pm Post subject: |
|
|
 Centurion
Joined: 23 Jan 2006 Posts: 139
|
please some body let me know wether we can stop one listener still having other listeners running.this seems would be fentastic if would b possible.
thanx. _________________ Jogi |
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon Feb 27, 2006 1:27 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Yes you can. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
mvic |
Posted: Mon Feb 27, 2006 2:09 pm Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
mquseless wrote: |
Stopping the listener does not stop existing channels, it only stops new channels (SVRCONN or RCVR type)from starting. |
If there's more than one listener (each listening on a different port) then stopping one of them would not prevent both these types of channel from starting, via any listeners that were still running. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Feb 27, 2006 5:17 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
And with version 6 you can selectively start and stop a listener. If you have multiple listeners running on the same machine you can selectively stop or start which ever specific listener you would like. You would do it from the MQ Explorer or from within runmqsc.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Tue Feb 28, 2006 11:57 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
jpeela wrote: |
please some body let me know wether we can stop one listener still having other listeners running.this seems would be fentastic if would b possible.
thanx. |
You may use kill -9 <pid_of_one_listener>. In fact endmqlsr -f does nearly the same. _________________ Regards
Hubert |
|
Back to top |
|
 |
|