Re: Cluster question;
Hi Doug,
Suppose there are 4 queue managers in a cluster (QM1, QM2, QM3 and QM4), and all 4 host a cluster queue (say CLUS.Q1).
If an application running on one of those 4 queue managers (say QM1) issues MQPUTs or MQPUT1s to queue CLUS.Q1, then all of the messages will show up on the QM1 instance of CLUS.Q1. There is no load balancing across the cluster.
At version 6, there is a new queue attribute (CLWLUSEQ) which allows you to specify that the local instance should be treated just like any other instance in the cluster, but at version 5, you would have to use a CLWLEXIT to get that behaviour. With CLWLUSEQ(ANY) in version 6 the messages put by the app on QM1 to CLUS.Q1 could show up on any of the 4 instances, and with DEFBIND(NOTFIXED) they would be load balanced across them.
If your PUTs are originating on a server which doesn't have a copy of the queue then it doesn't make any difference.
Regards,
| Neil Casey
Lead Technical Specialist, Middleware MQ Support Technology Operations National Australia Bank Level 1, 122 Lewis Rd (Tue Thu) Tel: +61 (0) 3 9886 2375 | Fax: +61 (0) 3 9886 2700 | Mob: +61 (0) 408 356 208 Pier 4, Level 8, 800 Bourke St (Mon Wed Fri) Tel: +61 (0) 3 8634 2205 | Fax: +61 (0) 3 8634 3788 | Mob: +61 (0) 408 356 208 Email: Neil.Casey-yjaDgy+nFNoQrrorzV6ljw@public.gmane.org |
| "Clark, Douglas"
<dclark-43w+wAGA5HO7pU93UQLDAHzNABE0Ld/Y@public.gmane.org>
Sent by: MQSeries List <MQSERIES-0lvw86wZMd9k/bWDasg6f+2wyY2g16FtwPuJ0ROkVbw@public.gmane.org> 01/11/2006 08:15
|
|
Neil,
Thank you for your reply. Can you please clarify one point you made about "messages will not leave a queue manager which hosts a target queue unless you are running version 6." I am sorry but I do not understand what you mean. As an aside, all of these machines will be running MQSeries 5.3 CSD 10.
Doug
From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+2wyY2g16FtwPuJ0ROkVbw@public.gmane.org] On Behalf Of Neil Casey
Sent: Tuesday, October 31, 2006 1:05 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+2wyY2g16FtwPuJ0ROkVbw@public.gmane.org
Subject: Re: Cluster question;
Hi Douglas,
I would recommend that the new machines are defined as partial repositories.
The manuals show that more than 2 full repositories are supported, and it always sounds like a good idea. However, in my experience the actual implementation of repository update strategies by the MQ software means that having more than 2 full repositories doesn't really help, and can make MQ behave in unexpected ways.
The core of the issue is that when a queue manager sends a repository update or inquiry, it sends it to exactly 2 full repositories. It will always send it to the FR for which there is a static sender channel defined, and it will send to 1 other, determined in some way by the software.
The problem comes when FRs are down (either planned or unplanned). One might expect (I certainly did) that as long as at least 1 FR is up, your cluster should be healthy. Unfortunately, the repos update strategy means that if you have say 3 FRs, and the 2 which your PR sends updates to are down, then no updates or requests from that PR can be handled. This leads to things like issuing a suspend command, which gets processed, but the FR and the rest of the cluster don't get to see it unless one of the 2 update FRs are up. Messages keep arriving at the 'suspended' queue manager.
So, the bottom line is that no matter how many FRs are in your cluster,
the cluster is not healthy unless a maximum of 1 FR is unavailable. Statistical
analysis shows that the more FRs there are, the more likely it is that
more than one will be unavailable, and therefore the more likely it is
that your cluster could have a problem.
So my belief is that 2 FRs is a special number which is always the right
number to use.
FRs and PR which host application queues participate equally in load balancing,
although messages will not leave a queue manager which hosts a target queue
unless you are running version 6, where there is an option available to
load balance away from the current machine. At v5, if one of the target
queues in the cluster is on the current queue manager, the messages will
always go there.
My last piece of advice on clusters is that if you have a requirement for
timely performance in a request/response model, with messages flowing via
a cluster, don't put the FRs on a queue manager which has application queues.
Use dedicated queue managers (even if you run them on the same machines).
I am chasing some performance issues at my site where messages get delayed
when the FR amqrrmfa process gets busy managing cluster stuff, and
it stops responding to application requests in a timely manner.
Regards,
| Neil Casey
Lead Technical Specialist, Middleware MQ Support Technology Operations National Australia Bank Level 1, 122 Lewis Rd (Tue Thu) Tel: +61 (0) 3 9886 2375 | Fax: +61 (0) 3 9886 2700 | Mob: +61 (0) 408 356 208 Pier 4, Level 8, 800 Bourke St (Mon Wed Fri) Tel: +61 (0) 3 8634 2205 | Fax: +61 (0) 3 8634 3788 | Mob: +61 (0) 408 356 208 Email: Neil.Casey-yjaDgy+nFNoQrrorzV6ljw@public.gmane.org |
| "Clark, Douglas"
<dclark-43w+wAGA5HO7pU93UQLDAHzNABE0Ld/Y@public.gmane.org> Sent by: MQSeries List <MQSERIES-0lvw86wZMd9k/bWDasg6f+2wyY2g16FtwPuJ0ROkVbw@public.gmane.org> 01/11/2006 07:08
|
|
Due to significant increase in the number of messages we will process
for Christmas I have to prepare for the addition of machines to my
current environment.
Currently, I have four client machines and four queue managers (WC1,
WC2, WC3, WC4) sending data to a clustered queue (PROD_Q1) defined on
two server machines with queue managers WS1 and WS2 each hosting a full
repositories.
I am planning to add four more client machines and queue managers (WC5,
WC6, WC7, WC8) as well as two more server machines and queue managers
(WS3 and WS4).
The queue managers WS3 and WS4 will also have defined the same clustered
queue (PROD_Q1) and must be able to receive data from all eight client
machines (the original 4 and the 4 new servers recently added).
Should I make queue managers WS3 and WS4 full repositories or just
partial repositories. Will the PROD_Q1 on the two new server machines
participate equally in the load balancing done for WS1 and WS2.
To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+2wyY2g16FtwPuJ0ROkVbw@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
| National Australia Bank Ltd -
ABN 12 004 044 937 This email may contain confidential information. If you are not the intended recipient, please immediately notify us at postmaster-yjaDgy+nFNoQrrorzV6ljw@public.gmane.org or by replying to the sender, and then destroy all copies of this email. Except where this email indicates otherwise, views expressed in this email are those of the sender and not of National Australia Bank Ltd. Advice in this email does not take account of your objectives, financial situation, or needs. It is important for you to consider these matters and, if the e-mail refers to a product(s), you should read the relevant Product Disclosure Statement(s)/other disclosure document(s) before making any decisions. If you do not want email marketing from us in future, forward this email with "unsubscribe" in the subject line to Unsubscriptions-yjaDgy+nFNoQrrorzV6ljw@public.gmane.org in order to stop marketing emails from this sender. National Australia Bank Ltd does not represent that this email is free of errors, viruses or interference. |
List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
| National Australia Bank Ltd - ABN 12 004 044 937 This email may contain confidential information. If you are not the intended recipient, please immediately notify us at postmaster-yjaDgy+nFNoQrrorzV6ljw@public.gmane.org or by replying to the sender, and then destroy all copies of this email. Except where this email indicates otherwise, views expressed in this email are those of the sender and not of National Australia Bank Ltd. Advice in this email does not take account of your objectives, financial situation, or needs. It is important for you to consider these matters and, if the e-mail refers to a product(s), you should read the relevant Product Disclosure Statement(s)/other disclosure document(s) before making any decisions. If you do not want email marketing from us in future, forward this email with "unsubscribe" in the subject line to Unsubscriptions-yjaDgy+nFNoQrrorzV6ljw@public.gmane.org in order to stop marketing emails from this sender. National Australia Bank Ltd does not represent that this email is free of errors, viruses or interference. |
List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
RSS Feed