Skip to content

Commit cccd301

Browse files
committed
Merge branch 'master' of https://github.com/postgrespro/pg_dtm
2 parents 73a2b5d + 8b12fa2 commit cccd301

File tree

2 files changed

+29
-11
lines changed

2 files changed

+29
-11
lines changed

tests/deploy_layouts/cluster.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,33 @@
4141
environment:
4242
LD_LIBRARY_PATH: "{{pg_dst}}/lib/"
4343

44+
- name: copy transfers source
45+
copy: src=../{{item}} dest=~/{{item}} mode=0755
46+
with_items:
47+
- "dtmbench.cpp"
48+
49+
- name: clone pqxx
50+
git: repo=https://github.com/Ambrosys/pqxx.git
51+
dest=~/pqxx
52+
accept_hostkey=yes
53+
update=no
54+
force=yes
55+
register: pqxx
56+
57+
- name: build pqxx
58+
shell: "./configure --prefix=/home/{{ansible_ssh_user}}/pg_cluster/install/ --enable-shared && make -j4 && make install"
59+
args:
60+
chdir: "~/pqxx"
61+
environment:
62+
PATH: "/home/{{ansible_ssh_user}}/pg_cluster/install/bin/:{{ansible_env.PATH}}"
63+
when: pqxx.changed
64+
65+
- name: compile dtmbench
66+
shell: "g++ -g -Wall -O2 -o dtmbench dtmbench.cpp -lpqxx -lpq -pthread -L/home/{{ansible_ssh_user}}/pg_cluster/install/lib/ -I/home/{{ansible_ssh_user}}/pg_cluster/install/include/"
67+
68+
- name: move dtmbench to bin
69+
shell: "mv dtmbench ~/pg_cluster/install/bin/dtmbench"
70+
4471
- hosts: nodes[0]
4572
tasks:
4673
- name: build dtmd

tests/perf.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,14 @@
1515
set_fact:
1616
connections: "{{ connstrs.results | map(attribute='ansible_facts.connstr') | join }}"
1717

18-
- name: copy transfers source
19-
copy: src=./{{item}} dest=~/{{item}} mode=0755
20-
with_items:
21-
- "dtmbench.cpp"
22-
23-
- name: compile dtmbench
24-
shell: "g++ -g -Wall -O2 -o dtmbench dtmbench.cpp -lpqxx -lpq -pthread"
25-
26-
- name: compile dtmbench
27-
shell: "mv dtmbench ~/pg_cluster/install/bin/dtmbench"
28-
2918
- hosts: clients[0]
3019
gather_facts: no
3120
tasks:
3221
- name: init database
3322
shell: "~/pg_cluster/install/bin/dtmbench {{connections}} -a 500000 -i"
3423
register: init_result
24+
environment:
25+
LD_LIBRARY_PATH: "/home/{{ansible_ssh_user}}/pg_cluster/install/lib"
3526
- debug: var=init_result
3627

3728
- hosts: clients

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy