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 » WebSphere Message Broker (ACE) Support » How to Connect Active - Active QM's through Load balancer

Post new topic  Reply to topic
 How to Connect Active - Active QM's through Load balancer « View previous topic :: View next topic » 
Author Message
ANILK
PostPosted: Mon Mar 21, 2016 7:22 am    Post subject: How to Connect Active - Active QM's through Load balancer Reply with quote

Acolyte

Joined: 01 May 2014
Posts: 61

Hi Friends,

We are Running MQ 7.5 in 2 servers with active active topology for better performance.
Two QM 's are connected through clustering and client can send message to any Queue-manger. all connection params like QM name , IP port all are mentioned in a .binding and client will be using this file to send messages to respective Queues. now we are planing for high availability topology and decide to have have load balancer (F5) between client and MQ servers. Client need to send message to LB and LB will route messages to both QM's

1) If we configure Load balancer IP in the Binding file and removed the QM name , client is not able to send message to any QM and getting connection error.

2) If we mention QM name then message will be send only to that Queue-manager.

is it possible to send message only by mentioning LB IP and QM listening port number ? or is it essential to mention the QM name also ? .
do we need yo do any other configuration? Kindly share your valuable advises.

Thanks

Anil
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Mar 21, 2016 7:28 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

You need to tell us what you define as connection parameters on the following devices:
  1. Load balancing network device (F5/BigIP/...)
  2. Client device
  3. MQ Server

This should take at least part of the guesswork from your question.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
PeterPotkay
PostPosted: Mon Mar 21, 2016 3:09 pm    Post subject: Re: How to Connect Active - Active QM's through Load balanc Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

ANILK wrote:

is it possible to send message only by mentioning LB IP and QM listening port number ?

Yes, possible. And required. Well, actually you also have to specify the MQ Client Channel name too.


ANILK wrote:

or is it essential to mention the QM name also ? .

Not essential. And in fact not allowed if you expect to be load balanced successfully.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
ANILK
PostPosted: Mon Mar 21, 2016 8:35 pm    Post subject: Reply with quote

Acolyte

Joined: 01 May 2014
Posts: 61

Thank you Peter & fjb for the immediate response.

1) Currently we have separate binding file per MQ server. WE HAVE 2 MQ SERVERS (Active-Active)
2) Client is using both binding files to read messages from QM1 & QM2
3) Client is sending messages to only QM1 , because client has some limitations and can send messages only to one MQ server
4) So client has decided to send message to F5(LB) and F5 will route messages to both MQ servers (Round-robin)
5) Now i need to modify the existing binding file and need to mention F5 VIP instead of MQ server IP, (Currently we have mentioned MQ server IP)
6) When I updated Binding file with F5 IP and removed QM name from binding file , client is not able to send messages.
7) But when i mention QM1 name in the Binding file with F5 IP Client is able to send message only to 1 QM.

some info from Binding file
-------------------------------------------
TEST/RefAddr/80/Type=XMSC_WMQ_CHANNEL
TEST/RefAddr/5/Content=SYSTEM.BKR.CONFIG
TEST/RefAddr/34/Content=SYSTEM.BROKER.DEFAULT.STREAM
----------------------------------------------------------------------
I am not sure about the F5 configurations ,

Anil
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Mar 22, 2016 4:20 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

There are 2 other points you need to consider in your active/active configuration:
  1. You can only retrieve messages from queues / topics that are local to the queue manager you're connected to.
  2. Once established your connection needs to be sticky. What this means is you cannot use round robin on the F5 for each invocation. Only the connection can take advantage of round robin. Once the connection has been established it needs to stay with the same server until you disconnect.


Obviously with an active / active setup both queue managers need to have different names...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
ANILK
PostPosted: Tue Mar 22, 2016 6:15 pm    Post subject: Reply with quote

Acolyte

Joined: 01 May 2014
Posts: 61

Thank you fjb for your inputs, we are looking for fail-over through f5.
if 1MQserver is down then F5 should send messages only to 2MQserver.and i thnink it is possible witg F5 .

My issue is related to the binding file params, if i am not mentioning QM name in the binding file , client is not able to send messages to Queue.
QM not found error .


Anil
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Mar 23, 2016 4:13 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

ANILK wrote:
Thank you fjb for your inputs, we are looking for fail-over through f5.
if 1MQserver is down then F5 should send messages only to 2MQserver.and i thnink it is possible witg F5 .

My issue is related to the binding file params, if i am not mentioning QM name in the binding file , client is not able to send messages to Queue.
QM not found error .


Anil


That's probably because the MQ Client mentions a qmgr name in the connection set up. Try establishing the connection from the client with only hostname (F5 vip), channel name and port. Now a failover in the strict sense (as in web application) is not possible as there is no concept of a "sticky" session or failover session. The client application will still have to try and disconnect - reconnect on failure/shutdown of the qmgr it is currently connected to. Usually you would handle this through a CCDT and not necessarily an F5 load balancer...
Are you by any chance running the active - active scenario on top of HA (like hardware cluster or multi-instance qmgrs)?

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
ANILK
PostPosted: Wed Mar 30, 2016 2:09 am    Post subject: Reply with quote

Acolyte

Joined: 01 May 2014
Posts: 61

Thank You fjb_saper , we have created new binding file without mentioning the QM name, and issue is resolved.

Anil
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 » WebSphere Message Broker (ACE) Support » How to Connect Active - Active QM's through Load balancer
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.