I used a big install script. I just booted the Arch install image and then downloaded the script and ran it on each machine.
Then I setup a NAS for large storage that was available to the entire cluster. On the NAS I have a local repo were were put locally compiled packages (either from AUR or custom PKGBUILDs). Then each node can just be updated from the repo. I also use this tmux script for running the same command on each node (such as installing packages, updating, adding users, etc).
I tried Puppet, but it was overkill for what we need.
I like this approach with the firstboot service. That's where I got hung up a little bit was splitting mine up into three parts. I'll have to consolidate to something like.
This uses tmux to mimic clusterssh without needing X. I can login to our master node and run this. Then whatever I type shows up on all nodes (which are named node2, node3, etc.). Screenshot.
#!/bin/zsh
NNODES=12
tmux has-session -t "clusterssh"
if [[ $? -eq 0 ]]; then
echo "A cluster management session already exists! You should attached to"
echo "that one first, or rename it, before proceeding."
exit
fi
tmux new-session -s "clusterssh" -d 'ssh node2' 2>/dev/null 1>&2
for i in {3..$NNODES}; do
tmux split-window -t "clusterssh" -d 'ssh node'$i'' 2>/dev/null 1>&2
tmux select-layout -t "clusterssh" tiled 2>/dev/null 1>&2
done
tmux set-window-option synchronize-panes on 2>/dev/null 1>&2
tmux attach
I used a big install script. I just booted the Arch install image and then downloaded the script and ran it on each machine.
Then I setup a NAS for large storage that was available to the entire cluster. On the NAS I have a local repo were were put locally compiled packages (either from AUR or custom PKGBUILDs). Then each node can just be updated from the repo. I also use this tmux script for running the same command on each node (such as installing packages, updating, adding users, etc).
I tried Puppet, but it was overkill for what we need.
Compute server at a university research group lab
Looks like I need to reboot.
I like this approach with the firstboot service. That's where I got hung up a little bit was splitting mine up into three parts. I'll have to consolidate to something like.
These are extensive. Thank you.
This uses tmux to mimic clusterssh without needing X. I can login to our master node and run this. Then whatever I type shows up on all nodes (which are named node2, node3, etc.). Screenshot.
End of this list.
Back to top