File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ makejobs=4
20
20
# pg_version_tag=REL_10_STABLE
21
21
pg_repo=https://github.com/arssher/postgresql
22
22
pg_version_tag=postgres_fdw_read_committed
23
+ # postgres_fdw 2pc and triggers on fdw tables
24
+ pg_version_tag=pg_shardman_tbr_2pc
23
25
# pg_prefix="{{ansible_env.HOME}}/pg"
24
26
pg_prefix="/tmp/pg"
25
27
pg_src="{{pg_prefix}}/src"
@@ -37,6 +39,8 @@ pathman_version_tag=master
37
39
shardman_repo=https://github.com/postgrespro/pg_shardman.git
38
40
shardman_src="{{pg_prefix}}/pg_shardman"
39
41
shardman_version_tag=master
42
+ # trigger based replication
43
+ # shardman_version_tag=tbr-2pc
40
44
41
45
shardman_shardlord_connstring="host={{ shardlord_ip }} port={{ pg_port }} user={{ ansible_user }}"
42
46
Original file line number Diff line number Diff line change @@ -28,10 +28,14 @@ checkpoint_timeout = 60min
28
28
max_wal_size = 100GB
29
29
fsync = on
30
30
autovacuum = off
31
- # synchronous_commit = on
32
- synchronous_commit = local
31
+ synchronous_commit = on
32
+ # synchronous_commit = local
33
33
34
34
shardman.shardlord_dbname = ubuntu
35
35
shardman.poll_interval = 500 # long operations poll frequency in milliseconds
36
36
37
- shardman.sync_replicas = off
37
+ shardman.sync_replicas = on
38
+
39
+ max_prepared_transactions = 100000
40
+ postgres_fdw.use_2pc = on
41
+ postgres_fdw.use_repeatable_read = off
Original file line number Diff line number Diff line change 49
49
tags :
50
50
- build_pg
51
51
52
- - name : clone postgres sources
52
+ - name : clone postgres sources {{ pg_repo }}/{{ pg_version_tag }}
53
53
git : repo={{pg_repo}}
54
54
dest={{pg_src}}
55
55
version={{pg_version_tag}}
93
93
tags :
94
94
- build_pathman
95
95
96
- - name : clone shardman
96
+ - name : clone shardman {{ shardman_repo }}/{{ shardman_version_tag }}
97
97
git : repo={{shardman_repo}}
98
98
dest={{shardman_src}}
99
99
version={{shardman_version_tag}}
193
193
accept_hostkey=True
194
194
tags : perf
195
195
196
- - name : set PATH in .bashrc
196
+ - name : set PATH to flamegraph in .bashrc
197
197
lineinfile : dest=~/.bashrc line="export PATH={{ fg_path }}:$PATH"
198
198
tags :
199
199
- perf
You can’t perform that action at this time.
0 commit comments