clustershell
clustershell copied to clipboard
Persistent gateway connections with clush-agent
Utility to avoid gateway reconnections when using clush in scalable mode. This agent is optional. The idea of '''clush-agent''' is that it is started in a login session on the management node so next clush instances are started as clients to the clush-agent program. Through use of environment variables, the agent can be located and automatically used to route clush requests.
This agent will be able to maintain one ssh connection to each selected gateway node, running there a clush in listen mode (clush -X).
'''Pros''': fastest execution (avoid ssh reconnection), still no daemon running on gateways! '''Cons''': has to be fully secured within the login session
Couldn't the same thing be achieved by adding ControlMaster + ControlPersist to ssh_config?
see https://developer.rackspace.com/blog/speeding-up-ssh-session-creation/
Your proposal will save the ssh connection creation time, but not the python process start time.
From a very personal point of view, things like ControlMaster should be enough and I'm not sure we really need things like clush-agent.