Skip to content

Commit c8b01ea

Browse files
committed
use new arbiter ports config in tests
1 parent 6d4cff3 commit c8b01ea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/reinit-mm.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ for ((i=1;i<=n_nodes;i++))
1818
do
1919
port=$((5431 + i))
2020
raft_port=$((6665 + i))
21-
conn_str="$conn_str${sep}dbname=regression user=stas host=localhost port=$port sslmode=disable"
21+
arbiter_port=$((7000 + i))
22+
conn_str="$conn_str${sep}dbname=regression user=stas host=127.0.0.1 port=$port arbiterport=$arbiter_port sslmode=disable"
2223
raft_conn_str="$raft_conn_str${sep}${i}:localhost:$raft_port"
2324
sep=","
2425
initdb node$i
@@ -33,6 +34,7 @@ echo Start nodes
3334
for ((i=1;i<=n_nodes;i++))
3435
do
3536
port=$((5431+i))
37+
arbiter_port=$((7000 + i))
3638

3739
cat <<SQL > node$i/postgresql.conf
3840
listen_addresses='*'
@@ -54,10 +56,13 @@ do
5456
multimaster.heartbeat_recv_timeout = 1000
5557
multimaster.heartbeat_send_timeout = 250
5658
multimaster.twopc_min_timeout = 400000
59+
multimaster.min_2pc_timeout = 400000
5760
multimaster.volkswagen_mode = 1
5861
5962
multimaster.conn_strings = '$conn_str'
6063
multimaster.node_id = $i
64+
multimaster.max_nodes = 3
65+
multimaster.arbiter_port = $arbiter_port
6166
raftable.id = $i
6267
raftable.peers = '$raft_conn_str'
6368
SQL

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