|
16 | 16 | connections:"{{ connstrs.results | map(attribute='ansible_facts.connstr') | join }}"
|
17 | 17 |
|
18 | 18 | -name:copy transfers binary
|
19 |
| -copy:src=perf/perf.linux dest=~/perf mode=0755 |
| 19 | +copy:src=./perf/{{item}} dest=~/{{item}} mode=0755 |
| 20 | +with_items: |
| 21 | + -"perf.go" |
| 22 | + -"transfers.go" |
20 | 23 |
|
21 | 24 | -hosts:clients[0]
|
22 | 25 | gather_facts:no
|
23 | 26 | tasks:
|
24 | 27 | -name:fill the databases
|
25 |
| -shell:"~/perf {{connections}} -g -i" |
| 28 | +shell:"go run~/perf.go ~/transfers.go {{connections}} -g -i" |
26 | 29 | register:transfers_result
|
27 | 30 | -debug:"var=transfers_result"
|
28 | 31 |
|
29 | 32 | -hosts:clients[0]
|
30 | 33 | gather_facts:no
|
31 | 34 | tasks:
|
32 | 35 | -name:run transfers
|
33 |
| -shell:"~/perf{{connections}} {{runkeys | d('-g -w8 -r 1 -n 1000 -a10000')}}" |
| 36 | +shell:"go run~/perf.go ~/transfers.go{{connections}} {{runkeys | d('-g -w400 -r 1 -n 1000 -a100000')}}" |
34 | 37 | register:transfers_result
|
35 | 38 | -debug:var=transfers_result
|
36 | 39 |
|