随笔分类 -  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... 阅读全文
posted @ 2018-09-26 12:15 peiybpeiyb 阅读(399) 评论(0) 推荐(0) 编辑
摘要: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详... 阅读全文
posted @ 2018-09-26 11:05 peiybpeiyb 阅读(537) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2018-09-25 18:01 peiybpeiyb 阅读(692) 评论(0) 推荐(0) 编辑
摘要:/etc/repmgr.conf# more /etc/repmgr.conf############################################### node informationnode_id=1node_name=node1co... 阅读全文
posted @ 2018-09-25 17:32 peiybpeiyb 阅读(510) 评论(0) 推荐(0) 编辑
摘要:os:ubunbu 16.04postgresql:9.6.8repmgr:4.1.1192.168.56.101 node1192.168.56.102 node2生产环境确保网络稳定的前提下,数据库能够 auto failover 是最好的状态。如果是同... 阅读全文
posted @ 2018-09-25 17:10 peiybpeiyb 阅读(1071) 评论(0) 推荐(0) 编辑
摘要:os:ubunbu 16.04postgresql:9.6.8repmgr:4.1.1192.168.56.101 node1192.168.56.102 node2操作前/etc/repmgr.conf 的内容node1 节点上的文件内容,node2 节点... 阅读全文
posted @ 2018-09-25 11:08 peiybpeiyb 阅读(1540) 评论(0) 推荐(1) 编辑
摘要: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... 阅读全文
posted @ 2018-09-24 21:36 peiybpeiyb 阅读(737) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2018-09-24 19:21 peiybpeiyb 阅读(732) 评论(0) 推荐(0) 编辑
摘要:os:ubunbu 16.04postgresql:9.6.8repmgr:4.1.1repmgr -f /etc/repmgr.conf --help$ repmgr -f /etc/repmgr.conf --helprepmgr: replicatio... 阅读全文
posted @ 2018-09-24 16:00 peiybpeiyb 阅读(785) 评论(0) 推荐(0) 编辑
摘要:os:ubunbu 16.04postgresql:9.6.8repmgr:4.1.1repmgr是2ndquadrant公司维护的针对postgresql replication的工具。工具虽小,却比较精悍。需要注意的是repmgr必须安装在每个节点上。目... 阅读全文
posted @ 2018-09-21 15:33 peiybpeiyb 阅读(2128) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示