Hi Guys,
Can someone help me with configuration of heartbeat for below one:
I need to schedule heartbeat run using cron expression for every 30th second but not @every 30secs. (like 10:14:30 ,10:15:30 , 10:16:30 and so on)
Below is my sample heartbeat configuration which is running on every 30seconds, but i need to skip heartbeat to run at 0th second of every minute
Thanks for reply.
If I need to monitor on single VM then i will use expression like this schedule: '*/30 * * * * '
But I need to run same heartbeat configuration on two different VM's . And each process should not run on same time but need to capture events for every 30seconds
Reason for running same heartbeat configuration on two VM's is to increase the availability of heartbeat process if one goes down with any reason.
So Inorder to accommodate this change, I need to configure as below:
1st vm: schedule: ' * * * *' //which runs on every 0th minute
2nd vm: schedule: '30th second' //As i am running 1st vm on every 0th minute, i need to config on every 30th minute, but If i configure @every 30secs then it will capture 0th minute event too).
I hear you regarding running same configuraion on 2 vm's but in my case if health is in alarming condition, then duplicate alerts will be sent to the stakeholders. Anyway thanks for your help
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.