This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Websphere and the fly likes Question for Kyle Brown: Set a cluster of Websphere MQ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Question for Kyle Brown: Set a cluster of Websphere MQ" Watch "Question for Kyle Brown: Set a cluster of Websphere MQ" New topic
Author

Question for Kyle Brown: Set a cluster of Websphere MQ

Silvio Esser
Ranch Hand

Joined: Nov 05, 2005
Posts: 58
How should the load balancer be applied on MQ cluster? How do the clustered MQ
servers provide just one logic Q for the clients?
Thanks
[ January 30, 2008: Message edited by: Silvio Esser ]
Silvio Esser
Ranch Hand

Joined: Nov 05, 2005
Posts: 58
Kyle, Can you help with this question?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30130
    
150

Silvio,
A couple tips to help you get answers in the future:
- Please allow at least for 24 for anyone to see a question. Due to timezones around the world, someone may be asleep or at work when you ask your question.
- Is this something only Kyle can answer? Putting his name in the subject implies others are not welcome to reply?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30130
    
150

Now to your question: IBM has many free Redbooks online. Have you read the MQ one yet? Does it address your question? If not, I suggest asking something more specific that you want clarification on. This will make it easier for someone to answer the question.
Silvio Esser
Ranch Hand

Joined: Nov 05, 2005
Posts: 58
Originally posted by Jeanne Boyarsky:
Now to your question: IBM has many free Redbooks online. Have you read the MQ one yet? Does it address your question? If not, I suggest asking something more specific that you want clarification on. This will make it easier for someone to answer the question.


Which "redbook"? Do you have the link? I was trying to get a quick answer.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30130
    
150

Originally posted by Silvio Esser:
Which "redbook"? Do you have the link?


Silvio,
I see a number of redbooks on MQ.

I was trying to get a quick answer.

It's not a question that can be answered in a couple paragraphs. You are going to need to read up on it. Do feel free to follow up here once you have a more specific question.
Silvio Esser
Ranch Hand

Joined: Nov 05, 2005
Posts: 58
I want to create a cluster of MQs to support high availability. In the cluster, there are two MQ service providers installed on two separated nodes. The logical Q name for this cluster is �my_order_q�. My questions are:

1.When CLIENT_A puts messages on �my_order_q�, how are the messages distributed between the two MQ service providers? Using a hardware load balancer in front of the two nodes?

2.How does CLIENT_B retrieve the messages from �my_order_q�? How does the cluster handle the messages from two separated MQ service providers?
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Hi Silvio,

I think if you read through this redbook you should find the answers you are looking for. It is written for WebSphere MQ 5.1, but it still applies to WebSphere MQ 6.X

Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Originally posted by Silvio Esser:
I want to create a cluster of MQs to support high availability. In the cluster, there are two MQ service providers installed on two separated nodes. The logical Q name for this cluster is �my_order_q�. My questions are:

1.When CLIENT_A puts messages on �my_order_q�, how are the messages distributed between the two MQ service providers? Using a hardware load balancer in front of the two nodes?

2.How does CLIENT_B retrieve the messages from �my_order_q�? How does the cluster handle the messages from two separated MQ service providers?


OK, first of all, remember I'm not really an MQ expert, I just play one on TV, so the details of this may be a little off -- but they are close.

(1) The messages are not distributed by a load balancer, but by an internal queue-to-queue mechanism through the queue managers themselves. When CLIENT_A talks to its queue manager an exit will choose which of the actual "queue instances" to put the message on.

(2) CLIENT_B just connects up to the clustered queue the same way it would connect to a local queue. The redbook I referred you to has some detailed examples of how this works.

Kyle
Silvio Esser
Ranch Hand

Joined: Nov 05, 2005
Posts: 58


(1) The messages are not distributed by a load balancer, but by an internal queue-to-queue mechanism through the queue managers themselves. When CLIENT_A talks to its queue manager an exit will choose which of the actual "queue instances" to put the message on.

(2) CLIENT_B just connects up to the clustered queue the same way it would connect to a local queue. The redbook I referred you to has some detailed examples of how this works.


Kyle, Thanks for your reply.

1. I guess the "queue-to-queue manager" is a software module that is installed on both nodes. One of the "queue-to-queue manager" is actively serving CLIENT_A and distributing
the messages to MQ service providers on the two nodes while another is passively standby. When the active "Q2Q manager" is down, the passive "Q2Q manager" on the other node will find it and become active. There must be some IP porting happening on the background. Am I right?

2. How does the MQ cluster ensures CLIENT_B that the messages out of the cluster are in correct order (FIFO)?
 
 
subject: Question for Kyle Brown: Set a cluster of Websphere MQ
 
Similar Threads
Status of Msg when remote MQ server crash, clustering MQ servers
Websphere MQ failover
Data Retrival in Clustered environment
What is JBOSSMQ?
Status of msg on remote MQ server crash, clustering MQ servers