bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #50703, Cache sshlogin information

 
 

bug #50703: Cache sshlogin information

Submitted by:  Ole Tange <tange>
Submitted on:  Sun 02 Apr 2017 08:59:52 AM UTC  
 
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: In Progress
Privacy: PublicAssigned to: Ole Tange <tange>
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 02 Apr 2017 01:51:22 PM UTC, comment #3:

cat sshlogins | parallel --plain --results $HOME/.parallel/tmp/sshlogin/{1}/{2}.tmp echo \| ~/perl/perltime ssh '{=1 -s "$ENV{HOME}/.parallel/tmp/sshlogin/$arg[1]/$arg[2]" and skip(); =}' true \&\& mv $HOME/.parallel/tmp/sshlogin/{1}/{2}.tmp $HOME/.parallel/tmp/sshlogin/{1}/{2} :::: - ::: logintime

Ole Tange <tange>
Project AdministratorIn charge of this item.
Sun 02 Apr 2017 09:15:18 AM UTC, comment #2:

cat sshlogins | parallel --plain --results $HOME/.parallel/tmp/sshlogin/{1}/{2}.tmp echo \| ssh '{=1 -s "$ENV{HOME}/.parallel/tmp/sshlogin/$arg[1]/$arg[2]" and skip(); =}' parallel --{2} \&\& mv $HOME/.parallel/tmp/sshlogin/{1}/{2}.tmp $HOME/.parallel/tmp/sshlogin/{1}/{2} :::: - ::: number-of-cores number-of-cpus max-line-length-allowed

Ole Tange <tange>
Project AdministratorIn charge of this item.
Sun 02 Apr 2017 09:03:14 AM UTC, comment #1:

Move loadavg and swapactivity to sshlogin-dir, too.

Ole Tange <tange>
Project AdministratorIn charge of this item.
Sun 02 Apr 2017 08:59:52 AM UTC, original submission:

Computing the number of cores and max-logins on remote systems is slow, and fails if one of the sshs get stuck.

So cache this information in ~/.parallel/tmp/sshlogin/*

Move the linelength to there aswell.

cat sshlogins | parallel --plain --results ~/.parallel/tmp/sshlogin/{1}/{2} 'echo | ssh {1} parallel --{2}' :::: - ::: number-of-cores number-of-cpus max-line-length-allowed

Ole Tange <tange>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tange (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1