|
30 | 30 | gather_facts:no
|
31 | 31 | tasks:
|
32 | 32 | -name:init database
|
33 |
| -shell:"~/pg_cluster/install/bin/dtmbench {{connections}} -a1000000 -i" |
| 33 | +shell:"~/pg_cluster/install/bin/dtmbench {{connections}} -a2000000 -i" |
34 | 34 | register:init_result
|
35 | 35 | -debug:var=init_result
|
36 | 36 |
|
37 | 37 | -hosts:clients
|
38 | 38 | gather_facts:no
|
39 | 39 | tasks:
|
40 | 40 |
|
| 41 | + -local_action:shell echo "Bench started at `date`" >> perf.results |
| 42 | + |
41 | 43 | -name:run transfers
|
42 |
| -shell:'~/pg_cluster/install/bin/dtmbench {{connections}} -w {{item}} -s {{offset}} -d 100000 -r 1 -n 1000 -a 2000000 | tee -a perf.results | sed "s/^/`hostname`:/"' |
| 44 | +shell:> |
| 45 | + ~/pg_cluster/install/bin/dtmbench {{connections}} |
| 46 | + -w {{conns | d(200)}} -s {{offset}} -d 100000 -r 1 -n 1000 -a 2000000 | |
| 47 | + tee -a perf.results | |
| 48 | + sed "s/^/`hostname`:/" |
43 | 49 | register:transfers_result
|
44 | 50 | environment:
|
45 | 51 | LD_LIBRARY_PATH:"/home/{{ansible_ssh_user}}/pg_cluster/install/lib"
|
46 |
| -with_sequence:start=100 end=400 stride=50 |
47 | 52 |
|
48 |
| - -local_action:shell echo "{{transfers_result.results | map(attribute='stdout') | join('\n')}}" >> perf.results |
| 53 | + -debug:var=transfers_result |
| 54 | + |
| 55 | + -local_action:'shell echo "{{transfers_result.stdout }}" >> perf.results' |
| 56 | + |
| 57 | + -local_action:shell echo "Bench finished at `date`" >> perf.results |
49 | 58 |
|
50 |
| - -debug:msg="{{ transfers_result.results | map(attribute='stdout') | join('\n') }}" |
|