Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What's the best way to stop the machines fighting, while keeping them identical to keep things simple and reduce single points of failure?

share|improve this question

closed as off topic by Zoredache, Wesley, Ladadadada, rnxrx, Ward Sep 2 '12 at 16:45

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Can you clarify what the cron jobs do and why they are "fighting"? –  sciurus Sep 1 '11 at 16:13
    
What is your configuration and what resource(s) (is|are) being fought over? –  Bart Silverstrim Sep 1 '11 at 16:21
    
Actually a good question, too bad the OP didn't elaborate. –  HTTP500 Sep 1 '11 at 16:22
    
You might get better results if this was asked on drupal.stackexchange.com. –  Zoredache Sep 1 '11 at 16:23

2 Answers 2

up vote 2 down vote accepted

Check out this article which suggests using Hudson (now Jenkins) for the job.

Excerpt:

For remote jobs, Hudson can sign onto systems with SSH, copy over its own runtime, and run whatever you’d like on the remote system. This means that, no matter how many servers in a cluster need scheduled jobs, Hudson can schedule, run, and log them from one server. Hudson can distribute the jobs dynamically based on which machines are already busy, or it can bind jobs to specific boxes.

Cheers

share|improve this answer

The best way is to maintain some kind of global lock right in the script. This lock should be reachable from every server so there are two obvious choices here: using a DB (and you already have it) and using a distributed file system (and you don't have it probably). And of course you will have to modify behaviour of the script to set and to remove the lock.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.