parallel
[Top][All Lists]
Advanced

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

Remote N concurrent job with single controlmaster ssh connection.


From: aero
Subject: Remote N concurrent job with single controlmaster ssh connection.
Date: Wed, 2 Sep 2020 14:53:37 +0900

Hi,
i want to achieve the following job.

[locahost] <---- single controlmaster connection --->  [remotehost] ---> N concurrent jobs

My first try
1.
cat serverlist.txt | parallel --controlmaster -S 10/remotehost ssh user@{} uname -n


I expected "--controlmaster' option will make single connection from localhost to remotehost but parallel make every new connection to remote concurrent 10 jobs.

and tried with another option

2.
cat serverlist.txt | parallel --controlmaster -j1 -S 10/remotehost ssh user@{} uname -n

but it executes only  1 remote job at a time.

How can i achieve what i want to do?
. single controlmaster ssh multiflexed channel between localhost and remotehost.
. remote N concurrent job(with N/remotehost manual Ncores designation for N concurrent job) x N remote server 






reply via email to

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