Re: Cron Jobs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: linux-cluster-bounces@xxxxxxxxxx
[mailto:linux-cluster-bounces@xxxxxxxxxx]
> On Behalf Of Joseph L. Casale
> Sent: Tuesday, March 30, 2010 5:29 PM
> To: 'Linux-cluster@xxxxxxxxxx'
> Subject:  Cron Jobs
> 
> Anyone know how I might accomplish keeping cron jobs on the active
node?
> I realize I can create the job on all nodes such that it quietly
checks
> for status, if it's the active node, it runs but it's much easier to
> maintain my config on the moving fs as I do with httpd/MySQL etc so
> there exists only one copy.

It's probably overkill for most people, but we've implemented Quartz for
scheduled tasks so that we'd no longer have to worry about migrating
cron jobs.  Quartz is cluster-aware when coupled to a RDBMS, though it's
unrelated to the RHCS product suite.  Implement a high-availability
RDBMS with cluster tools, run Quartz on each cluster node and it "just
works".  It's also an active-active configuration so we can exercise all
cluster nodes at once.

Someone else already mentioned it, but another good idea is creating
lock files on a GFS filesystem.  We have a "semaphore" filesystem
implemented on GFS for certain processes that must be serialized.  The
high-availability scheduler doesn't completely replace it because we may
have to worry about overlapping scheduled tasks with different start
times.  Works great.

-Jeff



--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux