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 » General Discussion » MQ .2 Heartbeat & Disconnect interval

Post new topic  Reply to topic
 MQ .2 Heartbeat & Disconnect interval « View previous topic :: View next topic » 
Author Message
vmurali_au
PostPosted: Tue Apr 06, 2004 1:05 am    Post subject: MQ .2 Heartbeat & Disconnect interval Reply with quote

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
View user's profile Send private message
JasonE
PostPosted: Tue Apr 06, 2004 4:29 am    Post subject: Reply with quote

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
View user's profile Send private message
vmurali_au
PostPosted: Tue Apr 06, 2004 10:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Wed Apr 07, 2004 4:44 pm    Post subject: Reply with quote

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
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 » General Discussion » MQ .2 Heartbeat & Disconnect interval
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.