Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit54df5b6

Browse files
committed
deploy dtmd before postgres; turn off optimizations for dtmd
1 parent62a3bb5 commit54df5b6

File tree

3 files changed

+39
-37
lines changed

3 files changed

+39
-37
lines changed

‎contrib/multimaster/dtmd/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CC=gcc
2-
CFLAGS=-g -O2 -Wall -Iinclude -D_LARGEFILE64_SOURCE# -DDEBUG
2+
CFLAGS=-g -O0 -Wall -Iinclude -D_LARGEFILE64_SOURCE# -DDEBUG
33
SOCKHUB_PREFIX=../sockhub
44
SOCKHUB_CFLAGS=-I"$(SOCKHUB_PREFIX)"
55
SOCKHUB_LDFLAGS=-lsockhub -L"$(SOCKHUB_PREFIX)"

‎contrib/multimaster/sockhub/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CC = gcc
2-
CFLAGS = -c -I. -Wall -O3 -g -fPIC
2+
CFLAGS = -c -I. -Wall -O0 -g -fPIC
33
LD =$(CC)
44
LDFLAGS = -g
55
AR = ar

‎contrib/multimaster/tests/deploy_layouts/cluster.yml‎

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,41 @@
11
---
2+
3+
-hosts:nodes[0]
4+
5+
roles:
6+
-role:postgres
7+
pg_port:15432
8+
pg_repo:https://github.com/postgrespro/postgres_cluster.git
9+
pg_version_tag:master
10+
pg_destroy_and_init:true
11+
12+
tasks:
13+
-name:build sockhub
14+
shell:"make clean && make -j 4"
15+
args:
16+
chdir:"~/pg_cluster/src/contrib/multimaster/sockhub"
17+
18+
-name:build dtm
19+
shell:"make clean && make -j 4"
20+
args:
21+
chdir:"~/pg_cluster/src/contrib/multimaster/dtmd"
22+
# when: dtm_sources.changed
23+
24+
-name:kill dtmd
25+
shell:kill -9 `cat ~/pg_cluster/dtm_data/arbiter.pid` || true
26+
27+
-name:ensure datadir for dtm exists
28+
shell:"rm -rf ~/pg_cluster/dtm_data && mkdir ~/pg_cluster/dtm_data"
29+
30+
-name:start dtm
31+
shell:>
32+
nohup ~/pg_cluster/src/contrib/multimaster/dtmd/bin/dtmd
33+
-d ~/pg_cluster/dtm_data -a 0.0.0.0 -p 5431 > ~/pg_cluster/dtm_data/log &
34+
35+
-name:wait until dtm is available
36+
wait_for:port=5431 delay=1
37+
38+
239
-hosts:nodes[1]:nodes[2]:nodes[3]
340
# accelerate: true
441

@@ -52,41 +89,6 @@
5289
environment:
5390
LD_LIBRARY_PATH:"{{pg_dst}}/lib/"
5491

55-
-hosts:nodes[0]
56-
57-
roles:
58-
-role:postgres
59-
pg_port:15432
60-
pg_repo:https://github.com/postgrespro/postgres_cluster.git
61-
pg_version_tag:master
62-
pg_destroy_and_init:true
63-
64-
tasks:
65-
-name:build sockhub
66-
shell:"make clean && make -j 4"
67-
args:
68-
chdir:"~/pg_cluster/src/contrib/multimaster/sockhub"
69-
70-
-name:build dtm
71-
shell:"make clean && make -j 4"
72-
args:
73-
chdir:"~/pg_cluster/src/contrib/multimaster/dtmd"
74-
# when: dtm_sources.changed
75-
76-
-name:kill dtmd
77-
shell:kill -9 `cat ~/pg_cluster/dtm_data/arbiter.pid` || true
78-
79-
-name:ensure datadir for dtm exists
80-
shell:"rm -rf ~/pg_cluster/dtm_data && mkdir ~/pg_cluster/dtm_data"
81-
82-
-name:start dtm
83-
shell:>
84-
nohup ~/pg_cluster/src/contrib/multimaster/dtmd/bin/dtmd
85-
-d ~/pg_cluster/dtm_data -a 0.0.0.0 -p 5431 > ~/pg_cluster/dtm_data/log &
86-
87-
-name:wait until dtm is available
88-
wait_for:port=5431 delay=1
89-
9092

9193
-hosts:clients
9294

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp