Good ways to restart all the computers in a remote cluster?
- by vgm64
I have a cluster that I manage and from time to time I get emails from each node (and head node) begging to be restarted after an automatic upgrade.
Currently, my best solution so far is a shell script like:
$> cat cluster_reboot.sh
ssh [email protected] reboot
ssh [email protected] reboot
ssh [email protected] reboot
ssh [email protected] reboot
ssh [email protected] reboot
ssh [email protected] reboot
I end up just typing the root password six times, but it works, I guess. Is there a better way? Can I force the head node to reboot the computers for me?