docker-postgresql icon indicating copy to clipboard operation
docker-postgresql copied to clipboard

high availability

Open juandavidgc opened this issue 9 years ago • 4 comments

Hello! Is there a way in which I could configure these instances in ha? I need that if master crashes slave take his place.

juandavidgc avatar Jan 29 '16 18:01 juandavidgc

at the moment there is no way to automatically switch. You need to do it manually.

sameersbn avatar Aug 07 '16 13:08 sameersbn

I had one hardware crash about 2 weeks ago and I can't stop thinking about a multi-master setup.

Is it on your road map ?

Looks there is a few projects covering this feature like:

  • https://2ndquadrant.com/en/resources/bdr/
    • https://github.com/agios/docker-postgres-bdr
  • https://wiki.postgresql.org/wiki/Postgres-XC
  • https://github.com/postgres-x2/postgres-x2

Also, I want to thank you maintaining your projects and this one in particular. I'm running psql from your builds since about 4 months now and it's rock solid!

Cheers!

pascalandy avatar Aug 23 '16 00:08 pascalandy

@sameersbn :I understand that we don't have automatically promote slave to master. But can we add guideline how to promote current slave to master?

pilgrim2go avatar Mar 31 '17 09:03 pilgrim2go

@sameersbn - have you tried pgpool2 or something similar automatically balancing reads and writes? I am looking at https://github.com/jhunt/pgrouter and other similar tools to route / lb across the cluster based on your image.

syamsathyan avatar Jul 20 '17 21:07 syamsathyan