ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Clustering » MQ Clustering with Content Switch

Post new topic  Reply to topic
 MQ Clustering with Content Switch « View previous topic :: View next topic » 
Author Message
jrjoe
PostPosted: Tue Mar 16, 2004 8:26 am    Post subject: MQ Clustering with Content Switch Reply with quote

Acolyte

Joined: 20 Jan 2003
Posts: 60

I have 2 AIX boxes that will have Queue Managers on them in a Cluster.
These AIX boxes will be located behind a network content switch which will load balance the 2 boxes.
My question is will MQ clustering work in this enviorment?

If I take down one of the boxes all traffic will be routed to the other box thru the content switch.

Has anyone worked with this type of setup ?

Any advice or help will be much appreciated.

Thanks
Joe
Back to top
View user's profile Send private message
bduncan
PostPosted: Tue Mar 16, 2004 9:57 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

I very much doubt this would work out of the box.
Clustering, and MQSeries in general depends on channels that are defined between two distinct queue managers.
If a channel is defined between QM1 and QM2 and I send a message across that channel, but in the meantime your load balancer has rerouted all QM2's inbound network traffic to QM3, QM3 is not going to just accept the message. That is because when a message is placed on the transmission queue, the destination queue manager id is placed in the transmission header of the message, and that won't match the queue manager that the message ultimately gets routed to.
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
jefflowrey
PostPosted: Tue Mar 16, 2004 9:59 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

In general, MQSeries channels are incompatible with IP based load-balancers.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jrjoe
PostPosted: Wed Mar 17, 2004 7:22 am    Post subject: Reply with quote

Acolyte

Joined: 20 Jan 2003
Posts: 60

Thanks for the info regarding this. What are my options as far as hardware failover (cheapest at this point).
I know that HACMP is one.

Thanks again
Joe
Back to top
View user's profile Send private message
MQKev
PostPosted: Tue Aug 15, 2006 5:31 am    Post subject: Reply with quote

Newbie

Joined: 07 Nov 2005
Posts: 9

jefflowrey wrote:
In general, MQSeries channels are incompatible with IP based load-balancers.


Hi,

we have a similar problem. Do you know about MQClients and IP based load-balancer?

We (try to) use a Cisco Content Switch for clustering two identical Queue Managers (V5.3 // AIX 5.3), Client is a Server Application on Win2k. This Client is not able to connect via channeltab, so i couldn't use MQClustering (for HA)

MQ is able to keep connections to Queue Managers which aren't in "load-balancing-range" any more, thats a problem. The network guys say, thats impossible . Any experience out there?

greetz Kev
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Aug 15, 2006 5:35 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

MarkT has informed me that client channels work just fine with load-balancers.

MQ Clustering wouldn't have given you HA for a client app, anyway.

Or, really, HA for anything else.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
MQKev
PostPosted: Wed Aug 16, 2006 5:07 am    Post subject: Reply with quote

Newbie

Joined: 07 Nov 2005
Posts: 9

jefflowrey wrote:
MarkT has informed me that client channels work just fine with load-balancers.


That sounds great. But my Clients continue polling (getWait(30)) my backup Queue Manager while the primary machine returns in active status an the virtual IP of the Content Switch does route exclusively to this primary Box?
Is MQ able to remember a IP beyond the virtual IP?
(In the case of a switch to the backup system there are - as intended - TCP/IP-Errors in my AMQERR01.LOG. MQ talks about the virtual IP)

greetz Kev
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Aug 16, 2006 5:14 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If the client is in an get/wait, it might not notice that the channel has gone away and needs to be reconnected. It depends a bit on things like KeepAlive and heartbeats.

What happens if you restart your client apps? And, to be clear, it works fine when you fail to the backup but not when you fail back to the primary? Or it doesn't work when you fail to the backup?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
MQKev
PostPosted: Wed Aug 16, 2006 5:42 am    Post subject: Reply with quote

Newbie

Joined: 07 Nov 2005
Posts: 9

If my primary System gets down, the switch does route everything to the backup without any problems. But of course, that works because my Clients will reconnect due to the errors of the broken primary system. Thats ok for me, i just need a fast switch in the case of a not-working primary system.

But after my emergency switch the primary Queue Manager will return to work (i hope so^^), and then the content switch routes to the first box, but my clients stay on the backup one.
This leads to two more problems: Other Clients (the "real" client) put their requests to the primary one, while the Server Application still polls the backup Queue Manager.
The other problem is, that Win2k may crash in this case and needs to be rebooted with the "Power"-button But thats not the point, could be anything else.


KeepAlive and Heartbeat is a very good tip, thanks. I will search for a solution that way

thx & greetz Kev
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Aug 16, 2006 5:55 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If the primary crashes, then the connections get interrupted and then your client apps reconnect.

If the primary comes back up, but the backup doesn't go down, then the connections won't get interrupted and your client apps won't reconnect.

The switchover of the virtual ip does not affect existing connections.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Clustering » MQ Clustering with Content Switch
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.