Re:Cluster SSH – Manage Multiple Linux Servers Simultaneously
by scriptdevil on Tuesday October 29, 2019 @10:46AM
(#21387727)
I used clusterssh in the past and it is really good at sending commands to multiple machines. However for any real work, I would strongly recommend keeping the typing to a bare minimum and do all your work inside a well tested script. Better yet, use ansible or something like it to manage multiple servers
[ Parent
| on HN ]
Re:Cluster SSH – Manage Multiple Linux Servers Simultaneously
by ComputerGuru on Tuesday October 29, 2019 @12:15PM
(#21388820)
> I would strongly recommend keeping the typing to a bare minimum
Agreed.
> and do all your work inside a well tested script
At a minimum, with `set -ex` at the top. But I've stopped using (ba|fi||t?c)?sh scripts and switched to standard Makefiles for all my deployments. It requires changing the way you would normally code/script actions or interactions, but you get deterministic results.
Re:Cluster SSH – Manage Multiple Linux Servers Simultaneously
by lewaldman on Tuesday October 29, 2019 @04:11PM
(#21391458)
Oh... This Makefiles stuff is interesting... mind to share a little more about it (or maybe some links)
I'm a script junkie... So it may be really useful for me to learn about this! =)
Re:Cluster SSH – Manage Multiple Linux Servers Simultaneously
by carlsborg on Tuesday October 29, 2019 @10:55AM
(#21387837)
While developing such ansible scripts, or prototyping, you usually need to run the commands manually, so this becomes useful.
Re:Cluster SSH – Manage Multiple Linux Servers Simultaneously
by yjftsjthsd-h on Tuesday October 29, 2019 @11:09AM
(#21387997)
For that, do you really need to control more than one machine at a time?
Re:Cluster SSH – Manage Multiple Linux Servers Simultaneously
by carlsborg on Tuesday October 29, 2019 @11:34AM
(#21388306)
Sure if you are prototyping a cluster with various types of nodes.
Re:Cluster SSH – Manage Multiple Linux Servers Simultaneously
by scarby2 on Tuesday October 29, 2019 @12:16PM
(#21388835)
just run the playbook on a test cluster?
Re:Cluster SSH – Manage Multiple Linux Servers Simultaneously
by pletnes on Tuesday October 29, 2019 @11:32AM
(#21388291)
Tmux with sync-panes is similar but, imho, more convenient.
Re:Cluster SSH – Manage Multiple Linux Servers Simultaneously
by t0astbread on Tuesday October 29, 2019 @12:00PM
(#21388644)
I started playing around with self-hosting some things I use a few months ago and I was thinking about using Ansible but it just seemed way too complex.