Skip to content

Commit 3977b21

Browse files
committed
actualise reinit shell script
1 parent b6045e8 commit 3977b21

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

contrib/mmts/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,20 +46,14 @@ 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
multimaster.conn_strings = '$conn_str'
6253
multimaster.node_id = $i
63-
multimaster.max_nodes = 3
54+
multimaster.max_nodes = 4
6455
multimaster.arbiter_port = $arbiter_port
65-
raftable.id = $i
66-
raftable.peers = '$raft_conn_str'
56+
multimaster.min_2pc_timeout = 100000
6757
SQL
6858
cp pg_hba.conf node$i
6959
pg_ctl -w -D node$i -l node$i.log start

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