摘要: -- 两个不错的 ansible vagrant # https://github.com/r-trigo/postgres-repmgr-vagrant # https://github.com/2ndquadrant-it/ansible-postgresql-barman-playground 阅读全文
posted @ 2023-05-07 20:41 DBAGPT 阅读(9) 评论(0) 推荐(0) 编辑
摘要: # 背景 ``` 使用阿里云CentOS作为镜像仓库 ``` # 镜像仓库 ``` #- 默认系统没有安装wget,因此使用curl最方便 curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos 阅读全文
posted @ 2023-05-07 19:40 DBAGPT 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 陷阱 Linux7开始,默认在selinux级别上都有所增强,特别对于.ssh文件的 上下文 属性必须是ssh_home_t,否则导致其他权限都正确的情况下,passwordless ssh还是会失败。 1. Config the ssh - /etc/ssh/ssh_config # - ensu 阅读全文
posted @ 2023-05-07 19:07 DBAGPT 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 扫盲 1. autofailover实际是使用repmgrd进程主动监控并执行主备切换,看上去很强大,实则生产中慎用或者不用。 2. PG switchover时,主备 PG owner 必须配置免密,并且 只能在standby机器上执行switchover的操作 系统环境 OS: CentOS7 阅读全文
posted @ 2023-05-07 09:31 DBAGPT 阅读(243) 评论(0) 推荐(0) 编辑