A sneak peak into HA-Cron

I can’t believe it took me so long to blog about this project of mine, considering the fact that I’m almost done with it’s development and I also gave a talk on it at Sun Tech Days 2009. This was originally proposed by the Solaris Cluster team for a workout at FOSS.IN 2008 but wasn’t selected, so I thought I’d take it up as my Sun Code For Freedom Contest project. This is one out of two proposals of mine for the contest, the other being HA-Zabbix which I haven’t started working on. 😛

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!

Advertisements

One thought on “A sneak peak into HA-Cron

  1. itsallpartoftheplan

    gr8…keep up the good work….am setting up a HA cluster here at my college..will try HA-Cron on it

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s