coordinating a script to run on only one of identical load-balanced servers
Posted
by
Amos Shapira
on Server Fault
See other posts from Server Fault
or by Amos Shapira
Published on 2011-11-24T22:49:14Z
Indexed on
2011/11/25
2:01 UTC
Read the original article
Hit count: 590
I have two identically configured CentOS 5 servers (possibly more in the future). I need to run a cron job on any one of them and that it'll run only on one of them.
I know about RedHat Cluster Suite (we use it on other servers), but it's a too big a gun to use for this task, plus it doesn't really behave well for less than three nodes.
Is there anything light-weight I can use for that?
The servers can communicate with each other directly. I suppose I can develope something over ssh or nrpe (two server which are already installed on these servers), but I was wondering whether there is something already available.
© Server Fault or respective owner