|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Load balancing problem in cluster |
« View previous topic :: View next topic » |
Author |
Message
|
fcho |
Posted: Wed May 29, 2002 2:15 am Post subject: Load balancing problem in cluster |
|
|
Apprentice
Joined: 29 May 2002 Posts: 28
|
I have 3 Q-manager (QM1 in NT1, QM2 in NT2, QM3 in NT1) in a cluster, QM1 & QM2 are repository to the cluster and QM3 not. I've created 2 local Q (Q1) in both QM1 & QM2 with sharing in cluster. I actually need a load balancing between QM1 & QM2.
Question 1 is when my program put message to Q1 thru QM3, all the message always go to QM1, this look like round robin not work, any body know why?
Question 2 is when I bring down QM1, is that any where to set all the messages in Q1 within QM1 will be automatic transfer to Q1 in QM2?
Question 3 is after I bring down & bring up QM1, all the previous messages in Q1 disapear, any body know why? |
|
Back to top |
|
 |
TorpedoSTu |
Posted: Wed May 29, 2002 4:06 am Post subject: |
|
|
Acolyte
Joined: 14 Nov 2001 Posts: 73
|
Dear fcho,
1. How are you putting msg's onto the QM's. ? - I suspect amqsput
To enable the round-robin, DEFBIND should be set to NOTFIXED if you are using IPNUT_AS_QDEF in your PMO, else you need to explicity set the bind to be NOTFIXED. If you don't then the msg's will always go to the first queue the the QName Resolution algorithm finds.
2. Nope. There is a support pack that goes some way towards this though.
3. Becuase you've probably used non-persistant msgs which don't survive a qm re-start.
Try the following against both Q1's
ALTER QL(Q1) DEFPSIST(YES) DEFBIND(NOTFIXED) and ret-try
Regs
Stu |
|
Back to top |
|
 |
oz1ccg |
Posted: Wed May 29, 2002 6:41 am Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
Hi Stu,
You did mention
Quote: |
2. Nope. There is a support pack that goes some way towards this though. |
Quote: |
Question 2 is when I bring down QM1, is that any where to set all the messages in Q1 within QM1 will be automatic transfer to Q1 in QM2? |
I don't recall that, but by the way if you bring down a queuemanager hosing a local (non shared) queue, that queue will be unavailable until the queuemanager is back in business again, right ?
Otherwise there are something that I had misunderstood
Maybee what you ment was that all msgs will go to QM2 when QM1 is absent..
PLS, tell me which supportpack so I can learn about it. TIA _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
fcho |
Posted: Wed May 29, 2002 6:05 pm Post subject: |
|
|
Apprentice
Joined: 29 May 2002 Posts: 28
|
Hi Stu,
Thanks for the reply.
1. & 3. Done and work well.
2. May I know what is the support pack that goes some way towards this? Where can I get this?
Regs,
fcho |
|
Back to top |
|
 |
TorpedoSTu |
Posted: Thu May 30, 2002 12:16 am Post subject: |
|
|
Acolyte
Joined: 14 Nov 2001 Posts: 73
|
Sorry Boys,
Thought there was a support pack that moves msgs from one QM to another, but I can't find it. You could always use PQEDIT or similar.
Regs
Stu |
|
Back to top |
|
 |
fcho |
Posted: Thu May 30, 2002 12:23 am Post subject: |
|
|
Apprentice
Joined: 29 May 2002 Posts: 28
|
Hi Stu,
Sorry to disturd again.
Can you please explain in more detail what is PQEDIT and how to use it?
Regs,
fcho |
|
Back to top |
|
 |
oz1ccg |
Posted: Thu May 30, 2002 12:45 am Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
Hi folks,
A way of moving msgs i clusterqueue Q1 from QM1 to QM2, could be the following, and it works for me:
on QM1:
ALTER QL(Q1) PUT(DISABLED)
run my small program on QM1
and then either shut down or ENABLE Q1 again.
My little program
Quote: |
My small program opens and read the Q1 and the put msgs in Q1 (the same queue) on QM1..... What my program does is using PASS_CONTEXT, to ensure the MQMD stays unchanged. |
What actually happens is that the program read from the local queue and put the msg to one of the remote cluster queues. Nice trick ?
Maybee I should publish the program some time.... _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|