These are simple steps on how to cluster IBM Websphere MQ. Clustered MQ requires MQ Manager as gateway and set of MQ Managers as consumers of message.
Clustering helps improve performance since process can be spread across different applications. Vertical clustering can be used for high-specification machines and horizontal for low-specification machines.
Step 1:
Create gateway queue manager GATEWAYMGR. This is the queue manager that external application will use when sending a message.
Step 2:
Create two or more MQ manager consumers, e.g. ConsumerMgr1 and ConsumerMgr2.
Step 3:
Create cluster queue manager, e.g. CLUSTERMGR. Select GATEWAYQMGR as first full repository and ConsumerMgr1 as second full repository.
Step 4:
Create partial repository. Right-click on cluster manager and add queue manager ConsumerMgr2.
Step 5:
Create local queue to in both ConsumerMgr1 and ConsumerMgr2.
Step 6:
Create local queue in GATEWAYQMGR with attribute SYSTEM.CLUSTER.TRANSMIT.QUEUE. Message sent to Q.LOC of GATEWAYQMGR will go to either ConsumerMgr1 or 2.
No comments:
Post a Comment