Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clustering and Load Balancing

Status
Not open for further replies.

SameerKhan

Programmer
Apr 8, 2002
11
0
0
US
Clustering and Load Balancing

This is what I am trying to do ....

Scenario : i) System Billing.

ii) System Adapters.


SystemBilling Has a QManager , lets call this
Billing-QM

System Adapters Has multiple Q-Managers, call them
Adapters-QM1, Adapters-QM2 .... Adapters-QMn.

These QManagers form a Cluster.

Each of the Q-Managers ( The Adapters Systems ) have a
Q called Receiver-Q, i.e Receiver-Q on Adapter-QM1,
Receiver-Q on Adapter-QM2

---- To enable Load Balancing ---



I am trying this ....

On the Billing System Side :

The remote Definition for the Receiver-Q is on
Billing-QM. Now .. Is that even possible ? .. How will
I name the Qmanager ...

Define QREMOTE( Receiver-Q) RNAME ( Receiver-Q ) +
RQMNAME( what name should i use here . - NOTE 1. ) +
XMITQ( BillingToAdapter)

Define a Xmit Q as :

Define QLOCAL( BillingToAdapter ) USAGE( xmitq )

Define The Sender Channel

Define CHANNEL( Billing.Adapter ) + CHLTYPE(sdr) +
XMITQ( BillingToAdapter) +TRPTYPE(tcp) + CONNAME(
IpAddressofAdapter)

On The Adapter Side :

Define the Queue from which the Adpater Application
program will receive the message ...

Define QLOCAL(Receiver-Q) ... I will do this for every
QueManager ... i.e Adapters-QM1, Adapters-QM2 ....
Adapters-QMn

Channel Definition :

Define CHANNEL(Billin.Adapter) CHLTYPE( rcvr ) +
TRPTYPE( tcp )

-------------------------------------------------------------------------------------------------------



Now this is what i need to know ... If I specify the
name of any of the QueManagers from the List:
Adapters-QM1, Adapters-QM2 .... Adapters-QMn in the
defintion of the remote -q ( Refer -Note 1 )

and remembering the fact that the Q-Managers on the
Adapter side form a cluster .... will the Algorithm
for Load Balancing kick in ... If not ... How do i
solve it ?
 
Sameer,

You seem to be trying to do distributed queueing in a clustered environment. First, to take advantage of clustering and load balancing, you need to have ALL of your queue managers in that cluster. In your case that would mean System billing and System adapters. What happens then is that the "Receiver-Q" on the adapters side becomes a shared clustered queue that the System billing queue managers know about. You need to do nothing to make this relationshiop happen besides making the Reciever-Q a clustered Queue. MQ handles that for you. Once that queue is shared among a cluster of queue managers, then it is available to your application to "Put" to. You do not need to make a remote queue, transmit queue or even a channel between System billing and System adapters queue managers. When you add these QMs to the cluster all the connections are made at this time. Hope this helps.

Vinoo Palayoor
IBM MQSeries Certified Specialist
 
Vinoo, Thanks for your comments,

However, since the billing System and the adapters are 2 to be handled by 2 different BUs, I dont think It would be possible for the 2 qms to be in the same cluster, and hence the question.

Thanks again,
-Sameer
 
I found an article that is a step by step process on how to setup two repository queue managers and one non repository queue manager for MQSeries for Windows v5.1. I successfully configured the three servers, and created a VB client that puts messages on the clustered queues thru the non repository queue manager. I am unable to read the messages I just put on the clustered queues. Is there a configuration that will allow me to get the messages I just put on the clustered queues thru non repository queue manager?

I can be reached at nel_martins@hotmail.com if you have a comment or suggestion.

Thanks!
 
Hi,
i am also trying to set the MQ CLustering put to work. i would to test some failovers of the QMgrs to pick another one if other QMgr is not available. how could i achieve that pls help me out here. your timely response would be greatly appreciated.

Thanks in Advance,
Kavitha.
 
Kavitha,
Please look at this link:

This is an ongoing discussion about failover in a cluster environment. You may also want to use the search tool on to look at some of the other discussions that have taken place on this topic. There are also sample programs in the software repository on which show you how write applications that will put messages to different instances of the same queue in a cluster.

-------------------------
Brandon Duncan
IBM Certified MQSeries Specialist, Solutions Expert
Moderator brandon@mqseries.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top