Ok I understand to restore ambari heartbeat you restart ambari server/ambari agent. So they can
'connect' with each other. Problem is Ambari restart takes too long.
It does restart but in the order of 600 seconds (10 minutes)
opposed to 50 seconds (default) as suggested https://community.hortonworks.com/questions/183299/waiting-for-ambari-server-to-start-error-exiting-... which seems very unhealthy to me, what could be the cause of this. By the time it has restarted i suspect
ambari-agent has lost connection again. What could be the problem for ambari restart taking too long.
Hence I am losing heartbeat on ambari as the ambari-agent and ambari server restart are NOT synchronous
because of the extremely long interval of ambari server restart.