Hi Ole and All
For running a command across N remote hosts via ssh, in the parallel command's
options what does the "-j 100" will signify ?
Will it say to run 100 simultaneous ssh connections & the command ?
Or, 100 simultaneous jobs on every remote host , and there will be N
simultaneous ssh connection from localhost to remote hosts ?
Consider my command as something like below:-
cat hosts.txt |parallel -j $N -u rsync -Ha /home/user/dirname/hello
{}:/home/user/hello \; ssh {} /home/user/hello
What value for $N makes the whole matter in this context working efficiently,
scalable ? Is there some difference of $N's values between remote ssh parallel
command and local (non ssh) parallel command (like used for processing local
data/files etc) ? Or is the $N mean the same thing always irrespective of for
what purpose parallel is used ?
~Ciao.
On Saturday, October 12, 2013 1:56 AM, Ole Tange <[email protected]> wrote:
On Fri, Oct 11, 2013 at 7:59 PM, p sena <[email protected]> wrote:
> I have a minimal bash executable script to be run across N hosts. I do it
> this way
>
> cat hosts.txt |parallel -j 0 -u rsync -Ha /home/user/dirname/hello
> {}:/home/user/hello \; ssh {} /home/user/hello
Checkout --basefile, --slf, and --nonall.
Also I would find it unlikely that you really want the -u.
Before you use the program hello, check that it runs on your local system.
/Ole