You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consul has a convenient subcommand to execute a command on all nodes or a subset of nodes: consul exec -node worker uptime. This command is propagated via gossip so there's no guarantee of execution. Nonetheless, this is great for one off troubleshooting and when learning, to execute commands across nodes.
Think of this as syntactic sugar over using docker node ls -f worker and then ssh -c. Though, with docker node exec I wouldn't need to have direct SSH access to nodes.
The text was updated successfully, but these errors were encountered:
Consul has a convenient subcommand to execute a command on all nodes or a subset of nodes:
consul exec -node worker uptime
. This command is propagated via gossip so there's no guarantee of execution. Nonetheless, this is great for one off troubleshooting and when learning, to execute commands across nodes.See more details here: https://www.consul.io/docs/commands/exec.html
Perhaps we could have something like:
Think of this as syntactic sugar over using
docker node ls -f worker
and thenssh -c
. Though, withdocker node exec
I wouldn't need to have direct SSH access to nodes.The text was updated successfully, but these errors were encountered: