parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running >10 jobs in parallel on the same remote machine


From: Thomas Sattler
Subject: Re: Running >10 jobs in parallel on the same remote machine
Date: Fri, 03 Aug 2012 21:25:11 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120713 Thunderbird/14.0

Am 03.08.2012 17:52, schrieb Ole Tange:
>> How about the "Control" feature of (open-)ssh?
> 
> ControlPersist does not exist in my version of ssh.

OK, I checked: It's in my Gentoo (openssh-5.9_p1-r4)
but it's not in Debian Squeeze (openssh-5.5p1-6).

> Can you test if ControlPersist works for this:
> 
>     seq 100 | parallel -j0 ssh server 'echo {};sleep 2'

I have almost no problems. ('parallel' is to fast, and
the control channel needs some time to be initialized)
So I get several

"ControlSocket already exists, disabling multiplexing"

But in case the control channel has been established
in advance, there are no error messages. So I think
the following should work:

let parallel
 - run one "extra" ssh to the target host
 - give it time to establish its connections
 - run all regular ssh's through this
 - close the "extra" ssh when done

This should work on all systems that have the "basic"
ControlMaster feature.

Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]