File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change
1
+ /deploy /hosts
2
+ /deploy /pg_cluster_install.tgz
3
+ /perf.results
Original file line number Diff line number Diff line change 44
44
- name : restart postgrespro
45
45
command : " {{pg_dst}}/bin/pg_ctl restart -w -D {{pg_datadir}} -l {{pg_datadir}}/pg.log"
46
46
environment :
47
- LD_LIBRARY_PATH : " {{pg_dst}}/lib/"
47
+ LD_LIBRARY_PATH : " $LD_LIBRARY_PATH: {{pg_dst}}/lib/"
48
48
49
49
- hosts : clients
50
50
tasks :
Original file line number Diff line number Diff line change 93
93
- name : stop postgres if it was running
94
94
shell : " kill -9 `head -n 1 {{pg_datadir}}/postmaster.pid`"
95
95
environment :
96
- LD_LIBRARY_PATH : " {{pg_dst}}/lib"
96
+ LD_LIBRARY_PATH : " $LD_LIBRARY_PATH: {{pg_dst}}/lib"
97
97
when : pg_pidfile.stat.exists
98
98
99
99
- name : remove datadirs on datanodes
103
103
- name : create datadirs on datanodes
104
104
command : " {{pg_dst}}/bin/initdb {{pg_datadir}}"
105
105
environment :
106
- LD_LIBRARY_PATH : " {{pg_dst}}/lib/"
106
+ LD_LIBRARY_PATH : " $LD_LIBRARY_PATH: {{pg_dst}}/lib/"
107
107
args :
108
108
creates : " {{pg_datadir}}"
109
109
129
129
- name : start postgrespro
130
130
shell : " {{pg_dst}}/bin/pg_ctl start -w -D {{pg_datadir}} -l {{pg_datadir}}/pg.log"
131
131
environment :
132
- LD_LIBRARY_PATH : " {{pg_dst}}/lib/ "
132
+ LD_LIBRARY_PATH : " $LD_LIBRARY_PATH: {{pg_dst}}/lib"
133
133
Original file line number Diff line number Diff line change 30
30
gather_facts : no
31
31
tasks :
32
32
- name : init database
33
+ environment :
34
+ LD_LIBRARY_PATH : " $LD_LIBRARY_PATH:/home/{{ansible_ssh_user}}/pg_cluster/install/lib"
33
35
shell : " ~/pg_cluster/install/bin/dtmbench {{connections}} -a 2000000 -i"
34
36
register : init_result
35
37
- debug : var=init_result
49
51
sed "s/^/`hostname`:/"
50
52
register : transfers_result
51
53
environment :
52
- LD_LIBRARY_PATH : " /home/{{ansible_ssh_user}}/pg_cluster/install/lib"
54
+ LD_LIBRARY_PATH : " $LD_LIBRARY_PATH: /home/{{ansible_ssh_user}}/pg_cluster/install/lib"
53
55
54
56
- debug : var=transfers_result
55
57
You can’t perform that action at this time.
0 commit comments