coordinating a script to run on only one of identical load-balanced servers
- by Amos Shapira
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.