From: Martin H. <mo...@sg...> - 2008-04-16 13:02:24
|
On Wed, Apr 16, 2008 at 12:50:29AM -0500, Carlo Marcelo Arenas Belon wrote: > On Tue, Apr 15, 2008 at 02:50:30PM -0600, Brad Nicholes wrote: > > >>> On 4/15/2008 at 12:27 AM, in message <20080415062746.GA31038@tapir>, Carlo > > Marcelo Arenas Belon <ca...@sa...> wrote: > > > > > > backported and tested when applied to ganglia 3.0.7 as well, but I am afraid > > > not the complete fix that Martin was probably expecting for, as the > > > heartbeat > > > age is not calculated correctly either way. > > I might had uncover another bug when testing it as I was using an adhoc > cluster with only 1 node to test it. If this fix is buggy and/or incomplete, then I don't think it should be applied to 3.0.x. I just saw this contributed fix with no additional comments on the bug, so I thought it might be a candidate for the stable tree. thanks mh > > in this scenario the cluster time also stop getting updating resulting in a > "frozen" age. > > > So what is the logic that is being used to calculate this time for the down node that show up on the cluster page? > > from show_node.php, lines 68 to 71 > > # Compute time of last heartbeat from node's dendrite. > $clustertime=$cluster['LOCALTIME']; > $heartbeat=$hostattrs['REPORTED']; > $age = $clustertime - $heartbeat; > > > The last heartbeat time seems to be correct here. > > right, if there are more nodes in the cluster, it will be correct. > > Carlo |