A sneak peak into HA-Cron
Now that I've bored you with the history, I'll move on to telling you all about what HA-Cron is and it's relevance.
Those of you familiar with what high availability clustering is would have easily guessed by now as to what HA-Cron does. Anyways, one problem with an HA cluster is that when a failover happens, the failed node's cron jobs remain there itself and do not carry over to the new node. This naturally implies that the system administrator will have to manually intervene every time a failover occurs which goes against the whole idea of high availability clustering itself, where the key is to keep the recovery from a failure smooth and automated. So HA-Cron is an agent for Open HA Cluster which keeps Cron highly available.
Developed over the GDS template, HA-Cron accomplishes it's task by a set of simple procedures which are as follows:
1) Upon turning an RG (resource group) online on a node, a backup is made of the original root crontab. Next, the cron jobs for that particular RG which are specified by the user in a file are added to the root crontab entry, and a test job is added to ensure that Cron itself is working properly.
2) Upon stopping an RG on a node, the cron jobs that belong to that RG are removed from the root crontab.
You can check out the project's homepage here. Please feel free to pool in your suggestions. :)
Cheers!
Comments