2010-11-28 03:11:45 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-01-16 23:16:03 +00:00
|
|
|
SERVER1=parallel-server1
|
2010-11-28 03:11:45 +00:00
|
|
|
SERVER2=parallel-server2
|
2020-08-07 20:20:30 +00:00
|
|
|
SSHUSER1=vagrant
|
|
|
|
SSHUSER2=vagrant
|
|
|
|
SSHLOGIN1=$SSHUSER1@$SERVER1
|
|
|
|
SSHLOGIN2=$SSHUSER2@$SERVER2
|
2010-11-28 03:11:45 +00:00
|
|
|
|
2010-12-15 23:12:02 +00:00
|
|
|
echo '### Test -M (--retries to avoid false errors)'
|
2010-11-28 03:11:45 +00:00
|
|
|
|
2020-08-07 20:20:30 +00:00
|
|
|
seq 1 30 | parallel -j5 --retries 3 -k -M -S $SSHLOGIN1,$SSHLOGIN2 echo 2>/dev/null
|
|
|
|
seq 1 30 | parallel -j10 --retries 3 -k -M -S $SSHLOGIN1,$SSHLOGIN2 echo 2>/dev/null
|