streaming_replication
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
streaming_replication [2011/07/25 16:33] – k2patel | streaming_replication [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 10: | Line 10: | ||
==== postgresql.conf ==== | ==== postgresql.conf ==== | ||
- | < | + | < |
listen_addresses = ' | listen_addresses = ' | ||
port = 5435 #### Only Define if you running on non default port. | port = 5435 #### Only Define if you running on non default port. | ||
Line 30: | Line 30: | ||
</ | </ | ||
- | pg_hba.conf | + | Setup access rule. |
- | ^^^^^^^^^^^ | + | |
+ | <code bash | pg_hba.conf> | ||
# | # | ||
hostssl | hostssl | ||
+ | </ | ||
+ | Postgres restart on Master | ||
+ | <code bash> | ||
bin/pg_ctl -p bin/ | bin/pg_ctl -p bin/ | ||
bin/pg_ctl -p bin/ | bin/pg_ctl -p bin/ | ||
+ | </ | ||
+ | Sync current data over Rsync. | ||
+ | <code bash> | ||
bin/psql -c " | bin/psql -c " | ||
rsync -av data/ < | rsync -av data/ < | ||
bin/psql -c " | bin/psql -c " | ||
+ | </ | ||
==== Recovery.conf ==== | ==== Recovery.conf ==== | ||
< | < | ||
standby_mode = ' | standby_mode = ' | ||
- | primary_conninfo = 'host=v4.mcfapps.com | + | primary_conninfo = 'host=< |
# primary_conninfo = ' | # primary_conninfo = ' | ||
# to specify a connection info to the master node. | # to specify a connection info to the master node. |
streaming_replication.1311611622.txt.gz · Last modified: 2020/08/10 02:29 (external edit)