File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -5,20 +5,21 @@ pkill -9 postgres
55pkill -9 arbiter
66
77cd ~ /code/postgres_cluster/contrib/mmts/
8- make install
8+ make clean && make install
99cd ~ /code/postgres_cluster/contrib/raftable/
10- make install
10+ make clean && make install
1111cd ~ /code/postgres_cluster/contrib/mmts/tests
1212
1313
1414rm -fr node? * .log dtm
15- mkdir dtm
1615conn_str=" "
1716sep=" "
1817for (( i= 1 ;i<= n_nodes;i++ ))
1918do
20- port=$(( 5431 + i))
19+ port=$(( 5431 + i))
20+ raft_port=$(( 6665 + i))
2121 conn_str=" $conn_str ${sep} dbname=postgres host=localhost port=$port sslmode=disable"
22+ raft_conn_str=" $raft_conn_str ${sep}${i} :localhost:$raft_port "
2223 sep=" ,"
2324 initdb node$i
2425done
3536 sed " s/5432/$port /g" < postgresql.conf.mm > node$i /postgresql.conf
3637 echo " multimaster.conn_strings = '$conn_str '" >> node$i /postgresql.conf
3738 echo " multimaster.node_id = $i " >> node$i /postgresql.conf
39+ echo " raftable.id = $i " >> node$i /postgresql.conf
40+ echo " raftable.peers = '$raft_conn_str '" >> node$i /postgresql.conf
41+
3842 cp pg_hba.conf node$i
3943 pg_ctl -w -D node$i -l node$i .log start
4044done
You can’t perform that action at this time.
0 commit comments