PostgreSQL高可用集群方案收集/主从切换/一主多从(待实践)
对于业内来说,基本都在围绕主从切换的高可用方案:
http://www.10tiao.com/html/175/201509/210974337/1.html
https://www.jianshu.com/p/ef183d0a9213
https://my.oschina.net/Kenyon/blog/98217
一主多从实现读写分离,完全依赖第三方激情软件的pgpool:
http://www.bkjia.com/Javascript/1188773.html
https://github.com/digoal/blog/blob/master/201708/20170807_01.md
https://www.jianshu.com/p/77f07af6ca4b
一主一从实现读写分离:
https://www.cnblogs.com/yjf512/p/4499547.html
我想到的一主多从,丛库依靠HAProxy多负载均衡,暴露给开发的就两个IP,写IP和读IP,有业务进行控制:
https://my.oschina.net/Kenyon/blog/664102
https://cloud.tencent.com/developer/article/1026385