- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经成功设置了两个节点(Master & Satndby)。
我的版本是 repmgr 2.0 (PostgreSQL 9.3.6)
备用repmgr.conf
cluster=test
node=2
node_name=node2
conninfo='host=192.168.1.218 user=repmgr_usr dbname=repmgr_db'
pg_bindir='/usr/lib/postgresql/9.3/bin'
master_response_timeout=30
reconnect_attempts=2
reconnect_interval=10
failover=automatic
cluster=test
node=1
node_name=master
conninfo='host=192.168.1.205 user=repmgr_usr dbname=repmgr_db'
pg_bindir=/usr/lib/postgresql/9.3/bin
master_response_timeout=30
reconnect_attempts=2
reconnect_interval=10
failover=automatic
promote_command='/etc/repmgr/auto_failover.sh'
[WARNING] repmgrd: Connection to standby has been lost, trying to recover... 20 seconds before failover decision
[2015-04-02 20:47:43] [WARNING] repmgrd: Connection to standby has been lost, trying to recover... 10 seconds before failover decision
[2015-04-02 20:47:53] [ERROR] repmgrd: We couldn't reconnect for long enough, exiting...
[2015-04-02 20:47:53] [ERROR] Failed to connect to local node, exiting!
最佳答案
为了执行脚本,您需要停止主节点而不是备用节点,因为只有在主节点出现故障时才会发生故障转移。
同样在您的 postgresql 配置文件中 /etc/postgresql/9.3/main/postgresql.conf
添加 shared_preload_libraries = 'repmgr_funcs'
.
在您的 /etc/repmgr/repmgr.conf
文件也添加这些行:
promote_command='repmgr standby promote -f /etc/repmgr/repmgr.conf'
follow_command='repmgr standby follow -f /etc/repmgr/repmgr.conf'
repmgrd
实际上是通过执行
ps aux | grep -i rep
来运行的.
关于postgresql - 自动故障转移在 repmgr 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29416779/
我已经成功设置了两个节点(Master & Satndby)。 我的版本是 repmgr 2.0 (PostgreSQL 9.3.6) 备用repmgr.conf cluster=test node=
我正在使用 repmgr 并已成功故障转移到备用节点。但是,当我尝试恢复发生故障的主节点时,我现在发现我有两个主节点。 我已经尝试将备用节点重新注册为备用节点。但是我发现当 repmgr 检查节点的模
repmgr 的问题: failed to register in claster 请告诉我,我错过了什么? 主配置: failover=automatic follow_command='repmg
我正在尝试使用两台服务器创建一个 postgres 复制配置。步骤类似于PostgreSQL 9.4 Replication with RepMgr and PgBouncer on Ubuntu 1
我有用于 HA 的 pgpool-II 和用于自动故障转移的 repmgr。 Pgpool-II 也可以运行故障转移 我只是想知道使用 pgpool 或 repmgr 进行自动故障转移吗?如果 pgp
我正在使用 Postgres 11.5 和 docker。我已经启动了 3 个容器 - 1 个主容器和 2 个从容器。 pg-0 大师: docker run --detach --name pg-0
我正在尝试创建具有复制和自动故障转移功能的 Postgresql 设置。我希望它是可重用的、可扩展的和可移植的,所以我尝试使用 docker 来运行 Postgres。我也不想重新发明轮子,所以我尝试
我正在使用 repmgr 进行复制。我已成功将主节点注册到 repmgr。我已经成功克隆了主节点并启动了备用服务器。但问题是我无法在 repmgr 中注册备用节点。 我使用的版本是 repmgr 2.
我正在尝试在我的 postgresql 环境(2 个 postgresql 服务器 + 1 个 pgpool)中配置 pgpool 以执行 HA,而 repmgr 负责复制。 我在日志中收到下一条消息
我是一名优秀的程序员,十分优秀!