From: Carlo M. A. B. <ca...@sa...> - 2008-04-16 05:32:30
|
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. 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 |