09.11.2012 Views

Redpaper - IBM Redbooks

Redpaper - IBM Redbooks

Redpaper - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The ability to define these clustered queues on several of the queue managers in<br />

the cluster leads to increased system availability. Each queue manager runs<br />

equivalent instances of the applications that process the messages. If one of the<br />

queue managers fails, or the communication to it is suspended, that queue<br />

manager is temporarily excluded from the choice of destinations for the<br />

messages. This functionality provides a number of benefits, the main one being<br />

HA.<br />

There are a few points to consider when approaching WebSphere MQ clustering<br />

as the preferred choice for implementing HA. For example, if a queue manager<br />

fails, then although any subsequent messages sent to the cluster are not routed<br />

to the failed queue manager, any persistent messages already sent to the queue<br />

manager, but not yet processed by the broker, are marooned on this failed queue<br />

manager. Also, for WebSphere MQ clustering to effectively balance loads<br />

between queues on different queue managers, messages sent from outside the<br />

cluster need to be sent to a gateway queue manager. A gateway queue manager<br />

creates a single point of failure for the whole logical hub. Therefore, the gateway<br />

queue manager would need to have very high availability.<br />

Also, remember that in the event that the Message Broker falls over but the<br />

clustered queue manager is still operational, messages under a cluster queue<br />

environment are still sent to the queue manager. These messages are not<br />

processed until the Message Broker is once again functional. Unless there is a<br />

monitoring tool which registers that the Message Broker is inoperative,<br />

messages can build up unnoticed.<br />

A way of safeguarding against this situation is to employ a monitoring tool, which<br />

registers both the status of the Message Broker and the subsequent build up of<br />

messages on the broker input queue. If, for example, the normal buildup on the<br />

broker input queue is 50 messages, it might be wise to set an alert on the queue.<br />

If messages build to a number greater than 50, then an alert is sent to the<br />

monitoring tool, and an operator can determine if there is a problem.<br />

Table 2-2 shows the advantages and disadvantages to using WebSphere MQ<br />

clustering.<br />

Table 2-2 Advantages and disadvantages to using WebSphere MQ clustering<br />

Advantages Disadvantages<br />

Provides resilient failover because<br />

WebSphere MQ can redirect messages<br />

away from a failed queue manager to be<br />

picked up by a functional one.<br />

Persistent messages awaiting processing<br />

while on the queue of a failed queue<br />

manager remain there until the queue<br />

manager is operational.<br />

Chapter 2. Design decisions that affect high availability 13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!