Mercurial > hg > cc > azure
comparison master/bin/wrun.sh @ 10:2fbefb8d1a9e
wrun.sh: usage catchup
invoke.sh: force terminal allocation on workers
test1.sh: support control of number of worker processes are spawned,
support -t to turn off random delay at startup
count1.sh: actual do the counting in subprocs to avoid disk contention
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Mon, 08 Oct 2018 13:17:23 +0000 |
parents | 55e953e5c66f |
children | 9275e2a8b5e2 |
comparison
equal
deleted
inserted
replaced
9:55e953e5c66f | 10:2fbefb8d1a9e |
---|---|
4 cat 1>&2 <<EOF | 4 cat 1>&2 <<EOF |
5 Usage: $0 SSname cmd [-x] [-np n] [-f[f] file] [-i] [...args] | 5 Usage: $0 SSname cmd [-x] [-np n] [-f[f] file] [-i] [...args] |
6 Where name is the name of a VM scale set. | 6 Where name is the name of a VM scale set. |
7 | 7 |
8 Runs cmd on every machine in a scale set, | 8 Runs cmd on every machine in a scale set, |
9 passing args and, | 9 (only using n machines if -np n is present) |
10 passing args and (as ~/ifile.txt), | |
10 if -f, lines from file split per worker | 11 if -f, lines from file split per worker |
11 if -ff, complete file sent to all workers | 12 if -ff, complete file sent to all workers |
12 unless -x, worker id | 13 and, unless -x, worker id |
13 by doing as it were | 14 by doing as it were |
14 [ echo line(s)-from-file |] ssh machine "$cmd [id] "$args"" | 15 scp machine: <(line(s)-from-file) ifile.txt && ssh machine "$cmd [id] "$args"" |
15 if -i, don\'t use nohup on the workers so returns immediately | 16 if -i, don\'t use nohup on the workers so returns immediately |
16 [default is to use nohup unless neither -f or -ff] | 17 [default is to use nohup unless neither -f or -ff] |
17 EOF | 18 EOF |
18 exit 1 | 19 exit 1 |
19 fi | 20 fi |