Author |
Message
|
tinye |
Posted: Mon Oct 10, 2005 6:51 am Post subject: Force RCVR to accept sequence number? |
|
|
Novice
Joined: 02 Aug 2005 Posts: 17 Location: OHIO
|
I wonder if there is a way to set a Receiver channel to accept whatever sequence number it is provided by the Sender? - no matter what it is?
Currently, I find the sequence number discrepency in the error log on the Receiver side and reset the Receiver to the next expected number. This process works fine; but I'm trying to figure out how to do this without human intervention....and without touching the Sender side.
This happens because I switch between physical servers on the Receiver side (it's a long story).
For what I'm doing, I'd be happy with disabling the sequence numbers all together; but I still need persistence.
Thanks! |
|
Back to top |
|
 |
Mr Butcher |
Posted: Mon Oct 10, 2005 7:05 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
no way to go without sequence numbers.
all you could do is to set up some kind of automated procedure / process to catch the error number and then issue the reset. good job for a monitoring software. _________________ Regards, Butcher |
|
Back to top |
|
 |
sebastianhirt |
Posted: Mon Oct 10, 2005 7:06 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
Have you thought about using workload exits? |
|
Back to top |
|
 |
tinye |
Posted: Mon Oct 10, 2005 7:17 am Post subject: |
|
|
Novice
Joined: 02 Aug 2005 Posts: 17 Location: OHIO
|
Thanks for the quick replies. I've been looking for an active forum relative to MQ topics, and it seems like this may be it
I use NetIQ for some server monitoring and could have it issue commands when it sees something specific -- so I'll look at how to capture the incoming sequence number.
I've not thought about workload exits -- but ony because I don't know what they are I'll start doing some research on that and see if I can work it in.
Thanks for the suggestions! |
|
Back to top |
|
 |
hopsala |
Posted: Mon Oct 10, 2005 8:51 am Post subject: Re: Force RCVR to accept sequence number? |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
In no particular order:
tinye wrote: |
Thanks for the quick replies. I've been looking for an active forum relative to MQ topics, and it seems like this may be it |
Welcome to the best MQSeries forum on the internet, I kid you not.
tinye wrote: |
For what I'm doing, I'd be happy with disabling the sequence numbers all together; but I still need persistence. |
Sequence numbers are an integral part of the persistence mechanism, they are inseperable by nature.
tinye wrote: |
I use NetIQ for some server monitoring and could have it issue commands when it sees something specific -- so I'll look at how to capture the incoming sequence number. |
Do not forget to check "IN DOUBT" state, that occasionally comes along with seqnum messages (upon real malfunctions).
tinye wrote: |
This happens because I switch between physical servers on the Receiver side (it's a long story). |
Tell us, we love old war stories Besides, there may be a meta-solution at hand, rather than patchy scripting. |
|
Back to top |
|
 |
hopsala |
Posted: Mon Oct 10, 2005 8:54 am Post subject: |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
sebastianhirt wrote: |
Have you thought about using workload exits? |
What does a workload exit have to do with it? (other than the fact that it's blatant overkill for such a simple prob) |
|
Back to top |
|
 |
tinye |
Posted: Mon Oct 10, 2005 9:11 am Post subject: |
|
|
Novice
Joined: 02 Aug 2005 Posts: 17 Location: OHIO
|
Thanks for your interest....here goes:
I'm working in something of a pseudo-High Availability environment -- "pseudo" in that we call it HA, but it seems pretty far from it to me
So, I have two identical W2K servers with identical QM, Q, and RCVR Channel structures -- One is designated as Production, the other High Availablity (in case the Production should fail).
Let's say I have messages coming in and the PR server crashes while at message sequence number 5. The SNDR channel on the customer side goes into a Retrying state and messages are queued on the sending side.
On the receiving side, I move the IP address of the PR server to the HA server; so the HA server essentially assumes the identity of the PR server -- but, the sequence number of the RCVR channel is whatever it was the last time it was used...let's say 9.
The SNDR channel is going to try reconnecting (and it can because the channel name and IP are the same as they were), but it wants to send a sequence number of 6.
So...what I trying to do is recover this connection automatically without touching the SNDR channel, and without manually resetting the RCVR channel to the arriving sequence number  |
|
Back to top |
|
 |
hopsala |
Posted: Mon Oct 10, 2005 9:27 am Post subject: |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
Yea, I pretty much guessed that's the way it was set up - this poorman's failover design is more commonplace than you'd expect.
It is, of course, not at all the correct way to configure workload balancing/failover. See Failovering and load balancing at the same time. for a (my own...) description of a good workload design; search the site and read the manuals for more of the same. IMHO, you should invest your time in implementing this, rather than writing the afore mentioned script. |
|
Back to top |
|
 |
tinye |
Posted: Mon Oct 10, 2005 10:19 am Post subject: |
|
|
Novice
Joined: 02 Aug 2005 Posts: 17 Location: OHIO
|
Quote: |
poorman's failover design |
Quite well put.....
Your description sounds right on with what I should be doing. Thanks for the direction! |
|
Back to top |
|
 |
|