|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ .2 Heartbeat & Disconnect interval |
« View previous topic :: View next topic » |
Author |
Message
|
vmurali_au |
Posted: Tue Apr 06, 2004 1:05 am Post subject: MQ .2 Heartbeat & Disconnect interval |
|
|
 Voyager
Joined: 26 Mar 2004 Posts: 76
|
From the documents, the heartbeat interval is sent from the sender MCA to the receiver MCA, to release any resources and to deactivate the receiver channel, when there is no further messages in the Xmit Q.
But i found that the receiver channel also has a Heartbeat interval attribute. Wht is the use of this attibute at the receiver end?.
I tried setting the same value for both the sender & receiver end. Also, my disconnect interval is more than the heartbaet interval.
Still the receiver channel doesnt become inactive after the heartbeat time elapses.Why?
I'm using a sender channel in Windows NT, my receiver channel is in AIX
using MQ 5.2. |
|
Back to top |
|
 |
JasonE |
Posted: Tue Apr 06, 2004 4:29 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
Heartbeats are used to ensure a the other end of the channel is still there, not to close it down. Ie it guarantees something flows over the channel, where the something might just be a ping type command
Disconnect interval is what causes the channel to disconnect after a period of inactivity.
I believe (but am guessing) that both ends have values and they are negotiated to either the shortest or longest of the times, (I'm sure someone can correct this) |
|
Back to top |
|
 |
vmurali_au |
Posted: Tue Apr 06, 2004 10:05 pm Post subject: |
|
|
 Voyager
Joined: 26 Mar 2004 Posts: 76
|
This is an excerpt from the documentation
========================================
You can specify the approximate time between heartbeat flows that
are to be passed from a sending MCA when there are no messages on the
transmission queue. Heartbeat flows unblock the receiving MCA, which is waiting
for messages to arrive or for the disconnect interval to expire. When the receiving
MCA is unblocked it can disconnect the channel without waiting for the disconnect
interval to expire.
===========================================
From this i wonder what is the use of specifying heartbeat interval at the receiving end? Is it for negotiation?
Also, it seems that after receiving the heartbeat, the receiving MCA can disconnect the channel. Is it true? |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Apr 07, 2004 4:44 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
When two ends of the channel have different HBs, the smaller number is used.
0 is considred the smallest number, and means do not flow HBs.
The 2 sides are allowed to be different so that if the 2 QMs are in 2 different companies, and you set your HB to some crazy #, I can override it by setting a smaller #. Of course you could set it to a good #, and then I can set it to 2 or 1, and have the crazy # on my side. I guess it is screwy that it is available on both sides. It does give a little flexibility though.
A RCVR will put iself in an INACTIVE state when it fails to get a HB at the time it expectsthe next one, not when it does get one. If it is getting HBs, that means the network is up and the RCVR should assume a real message or a shutdown message (DISCINT expired) will be arriving from the SNDR, so don't go INACTIVE but continue RUNNING. _________________ Peter Potkay
Keep Calm and MQ On |
|
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
|
|
|
|