On 07/29/2014 12:55 PM, Joseph Ferguson wrote:
> Overall this is a solid idea. While I am not terribly familiar with
> postgres replication, couldn't the MASTER string be derived from
> --link environment variables on the replica slave? It would at least
> have the ip address and port from the ENV. We would also want to make
> sure if they provide a ROLE for replica that they also provide the
> other necessary parts (like the link if that fulfills the connection
> string). There is a similar check in the official wordpress image (to
> check for the mysql --link) [1].
Question: how does --link work if the two dockers are on different machines?
--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com