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

Commit 40b7d2e

Browse files
committed
fix markdown formatting in gitlab, 3
1 parent 4e3d660 commit 40b7d2e

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

README.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ other nodes. This is done by using 3 phase commit protocol and heartbeats for fa
2727
brought back to cluster can be fast-forwaded to actual state automatically in case when transactions log still
2828
exists since the time when node was excluded from cluster (this depends on checkpoint configuration in postgres).
2929

30-
Read more about internals on [architecture](/contrib/mmts/doc/architecture.md) page.
30+
Read more about internals on [architecture](doc/architecture.md) page.
3131

3232

3333

@@ -43,32 +43,32 @@ Ensure that following prerequisites are installed:
4343

4444
for Debian based linux:
4545

46-
```sh
46+
```
4747
apt-get install -y git make gcc libreadline-dev bison flex zlib1g-dev
4848
```
4949

5050
for RedHat based linux:
5151

52-
```sh
52+
```
5353
yum groupinstall 'Development Tools'
5454
yum install git, automake, libtool, bison, flex readline-devel
5555
```
5656

5757
After that everything is ready to install postgres along with extensions
5858

59-
```sh
59+
```
6060
git clone https://github.com/postgrespro/postgres_cluster.git
6161
cd postgres_cluster
6262
./configure && make && make -j 4 install
63-
cd ../../contrib/mmts && make install
63+
cd contrib/mmts && make install
6464
```
6565

6666
### Docker
6767

6868
Directory contrib/mmts also includes docker-compose.yml that is capable of building multi-master and starting
6969
3 node cluster.
7070

71-
```sh
71+
```
7272
cd contrib/mmts
7373
docker-compose up
7474
```
@@ -81,35 +81,35 @@ After things go more stable we will release prebuilt packages for major platform
8181

8282
1. Add these required options to the `postgresql.conf` of each instance in the cluster.
8383

84-
```
85-
wal_level = logical # multimaster is build on top of
86-
# logical replication and will not work otherwise
87-
max_connections = 100
88-
max_prepared_transactions = 300 # all transactions are implicitly two-phase, so that's
89-
# a good idea to set this equal to max_connections*N_nodes.
90-
max_wal_senders = 10 # at least the number of nodes
91-
max_replication_slots = 10 # at least the number of nodes
92-
max_worker_processes = 250 # Each node has:
93-
# N_nodes-1 receiver
94-
# N_nodes-1 sender
95-
# 1 mtm-sender
96-
# 1 mtm-receiver
97-
# Also transactions executed at neighbour nodes can cause spawn of
98-
# background pool worker at our node. At max this will be equal to
99-
# sum of max_connections on neighbour nodes.
100-
101-
102-
103-
shared_preload_libraries = 'multimaster'
104-
multimaster.max_nodes = 3 # cluster size
105-
multimaster.node_id = 1 # the 1-based index of the node in the cluster
106-
multimaster.conn_strings = 'dbname=mydb host=node1.mycluster, ...'
107-
# comma-separated list of connection strings to neighbour nodes.
108-
```
84+
```
85+
wal_level = logical # multimaster is build on top of
86+
# logical replication and will not work otherwise
87+
max_connections = 100
88+
max_prepared_transactions = 300 # all transactions are implicitly two-phase, so that's
89+
# a good idea to set this equal to max_connections*N_nodes.
90+
max_wal_senders = 10 # at least the number of nodes
91+
max_replication_slots = 10 # at least the number of nodes
92+
max_worker_processes = 250 # Each node has:
93+
# N_nodes-1 receiver
94+
# N_nodes-1 sender
95+
# 1 mtm-sender
96+
# 1 mtm-receiver
97+
# Also transactions executed at neighbour nodes can cause spawn of
98+
# background pool worker at our node. At max this will be equal to
99+
# sum of max_connections on neighbour nodes.
100+
101+
102+
103+
shared_preload_libraries = 'multimaster'
104+
multimaster.max_nodes = 3 # cluster size
105+
multimaster.node_id = 1 # the 1-based index of the node in the cluster
106+
multimaster.conn_strings = 'dbname=mydb host=node1.mycluster, ...'
107+
# comma-separated list of connection strings to neighbour nodes.
108+
```
109109
110110
2. Allow replication in `pg_hba.conf`.
111111
112-
Read description of all configuration params at [configuration](/contrib/mmts/doc/configuration.md)
112+
Read description of all configuration params at [configuration](doc/configuration.md)
113113
114114
## Management
115115
@@ -120,7 +120,7 @@ Read description of all configuration params at [configuration](/contrib/mmts/do
120120
* `mtm.get_cluster_info()` -- print some debug info
121121
* `mtm.make_table_local(relation regclass)` -- stop replication for a given table
122122
123-
Read description of all management functions at [functions](/contrib/mmts/doc/functions.md)
123+
Read description of all management functions at [functions](doc/functions.md)
124124
125125
126126

0 commit comments

Comments
 (0)