docker-archive / classicswarm

Swarm Classic: a container clustering system. Not to be confused with Docker Swarm which is at https://github.com/docker/swarmkit
Apache License 2.0
5.75k stars 1.08k forks source link

Help: Network Alias #2967

Closed christianriosa closed 4 years ago

christianriosa commented 4 years ago

Hi Guys, Need help.

I have 2 postgres container setup where streaming replication is working. I alias these 2 container as "pg-cluster" then have the rest of my container pointed to "pg-cluster" seems like internally its doing a round-robin which we want to disable.. is that possible?

Goal is to ensure that all the containers must first contact the master postgres and will only attempt to contact/connect on the slave if the master is down.

christianriosa commented 4 years ago

Hi,

Seems like pgpool is the answer.. Closing the issue.