matschaffer/knife-solo

Avoid many rsync connections

matschaffer opened this issue · 3 comments

The current method of calling rsync many times has some issues:

  • it's slow
  • lots of password prompts if not using key-based auth (#261)

We may be able multiplex ssh channels as discussed in #161. If not we may need another approach to transferring the kitchen to the node.

👍

Also brought up in #368

Now that I have a bit more experience working with ControlMaster, I get the impression we could at least multiplex the rsync connections with each other. Initial googling seems to indicate that Net::SSH might still need is own connection.

I'll plan to give this a shot and bump the minor rev when it happens since I could see it breaking some peoples setups if ControlMaster is disabled or unavailable.