pg_auto_failover主库维护操作流程

1 PG集群维护
1.1 主库维护
从节点设置维护状态
[postgres@localhost ~]$ pg_autoctl enable maintenance

修改主库postgresql.conf配置文件
1 停止主库
[root@localhost KDCC_installtool]# systemctl stop postgresql
2 修改postgresql.conf配置文件
[postgres@localhost ~]$ cd $PGDATA
[postgres@localhost pg_data]$ vi postgresql.conf
3 启动主库
[root@localhost KDCC_installtool]# systemctl start postgresql
从库取消维护状态
[postgres@localhost ~]$ pg_autoctl disable maintenance

集群状态检查
[postgres@localhost ~]$ pg_autoctl show state

1.2 从库维护
修改从库postgresql.conf配置文件
1 停止从库
[root@localhost KDCC_installtool]# systemctl stop postgresql
2 修改postgresql.conf配置文件
[postgres@localhost ~
pg_auto_failover主库维护操作流程
1 PG集群维护1.1 主库维护从节点设置维护状态[postgres@localhost ~]$ pg_autoctl enable maintenance修改主库postgresql.conf配置文...
点击下载文档文档为doc格式
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
上一篇
已经是第一篇



