随笔分类 - postgresql ha repmgr
摘要:os:ubunbu 16.04postgresql:9.6.8repmgr:4.1.1192.168.56.101 node1192.168.56.102 node2192.168.56.103 node3手动 rejoin$ sudo pg_ctlclus...
阅读全文
摘要:os:ubunbu 16.04postgresql:9.6.8repmgr:4.1.1192.168.56.101 node1192.168.56.102 node2192.168.56.103 node3配置好 1 Primary + 2 Standby详...
阅读全文
摘要:stop pgsql$ pg_ctl -D /var/lib/postgresql/9.6/main -m fast stop或者$ sudo pg_ctlcluster 9.6 main stopclone standby$ repmgr -h 192.1...
阅读全文
摘要:/etc/repmgr.conf# more /etc/repmgr.conf############################################### node informationnode_id=1node_name=node1co...
阅读全文
摘要:os:ubunbu 16.04postgresql:9.6.8repmgr:4.1.1192.168.56.101 node1192.168.56.102 node2生产环境确保网络稳定的前提下,数据库能够 auto failover 是最好的状态。如果是同...
阅读全文
摘要:os:ubunbu 16.04postgresql:9.6.8repmgr:4.1.1192.168.56.101 node1192.168.56.102 node2操作前/etc/repmgr.conf 的内容node1 节点上的文件内容,node2 节点...
阅读全文
摘要:os:ubunbu 16.04postgresql:9.6.8repmgr:4.1.1192.168.56.101 node1192.168.56.102 node2按照上一遍blog安装好 1 Primary + 1 Standby。编辑 /etc/sud...
阅读全文
摘要:os:ubunbu 16.04postgresql:9.6.8repmgr:4.1.1192.168.56.101 node1192.168.56.102 node2安装 postgresql 9.6 软件node1、node2都需要使用 apt insta...
阅读全文
摘要:os:ubunbu 16.04postgresql:9.6.8repmgr:4.1.1repmgr -f /etc/repmgr.conf --help$ repmgr -f /etc/repmgr.conf --helprepmgr: replicatio...
阅读全文
摘要:os:ubunbu 16.04postgresql:9.6.8repmgr:4.1.1repmgr是2ndquadrant公司维护的针对postgresql replication的工具。工具虽小,却比较精悍。需要注意的是repmgr必须安装在每个节点上。目...
阅读全文