File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 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 -w 8 -r 1 -n 1000 -a 10000 ')}}"
36
+ shell : " go run ~/perf.go ~/transfers.go {{connections}} {{runkeys | d('-g -w 400 -r 1 -n 1000 -a 100000 ')}}"
34
37
register : transfers_result
35
38
- debug : var=transfers_result
36
39
You can’t perform that action at this time.
0 commit comments