Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 93b7e67

Browse files
committed
actualise reinit shell script
1 parent 6dbc80f commit 93b7e67

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

tests/reinit-mm.sh

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,21 @@ n_nodes=3
22
export PATH=~/code/postgres_cluster/tmp_install/bin/:$PATH
33
ulimit -c unlimited
44
pkill -9 postgres
5-
pkill -9 arbiter
65

76
cd ~/code/postgres_cluster/contrib/mmts/
87
make clean && make install
9-
cd ~/code/postgres_cluster/contrib/raftable/
10-
make clean && make install
8+
119
cd ~/code/postgres_cluster/contrib/mmts/tests
1210

1311

14-
rm -fr node? *.log dtm
12+
rm -fr node? *.log
1513
conn_str=""
1614
sep=""
1715
for ((i=1;i<=n_nodes;i++))
1816
do
1917
port=$((5431 + i))
20-
raft_port=$((6665 + i))
2118
arbiter_port=$((7000 + i))
2219
conn_str="$conn_str${sep}dbname=regression user=stas host=127.0.0.1 port=$port arbiter_port=$arbiter_port sslmode=disable"
23-
raft_conn_str="$raft_conn_str${sep}${i}:localhost:$raft_port"
2420
sep=","
2521
initdb node$i
2622
pg_ctl -w -D node$i -l node$i.log start
@@ -50,21 +46,15 @@ do
5046
default_transaction_isolation = 'repeatable read'
5147
5248
multimaster.workers = 1
53-
multimaster.use_raftable = false
54-
multimaster.queue_size=52857600
55-
multimaster.ignore_tables_without_pk = 1
5649
multimaster.heartbeat_recv_timeout = 2000
5750
multimaster.heartbeat_send_timeout = 250
58-
multimaster.twopc_min_timeout = 40000000
59-
multimaster.min_2pc_timeout = 40000000
6051
multimaster.volkswagen_mode = 1
6152
6253
multimaster.conn_strings = '$conn_str'
6354
multimaster.node_id = $i
64-
multimaster.max_nodes = 3
55+
multimaster.max_nodes = 4
6556
multimaster.arbiter_port = $arbiter_port
66-
raftable.id = $i
67-
raftable.peers = '$raft_conn_str'
57+
multimaster.min_2pc_timeout = 100000
6858
SQL
6959
cp pg_hba.conf node$i
7060
pg_ctl -w -D node$i -l node$i.log start

0 commit comments

Comments
 (0)