Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

How to setup streaming replication with 2 or more hot standbys

$
0
0

According to the postgresql 9.2.x documentation you can create streaming replication from a master server to a hot standby. I want to be able to have multiple hot standbys where read queries will be proxied to by pgpool middleware.

https://wiki.postgresql.org/wiki/Streaming_Replication

According to the documentation you add the following entry to the pg_hab.conf after creating a corresponding replicating user on the master server.

# The standby server must connect with a user that has replication privileges.
# TYPE  DATABASE        USER            ADDRESS                 METHOD
host  replication     replication     192.168.0.20/32         md5

I do not see any example of any more that one replication address. And when I attempt to add another line. Only the last address specified as a replication host successfully established a streaming connection.

If this is not possible is there possibly a best practice to set up a streaming connection between one hot standby to another where the ultimate source is a designated master server.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>