首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >REPMGR -更改reconnect_attempts和reconnect_interval不工作

REPMGR -更改reconnect_attempts和reconnect_interval不工作
EN

Database Administration用户
提问于 2020-11-23 16:13:39
回答 1查看 321关注 0票数 1

我用REPMGR配置了PostgreSQL自动故障转移。但是,在我的模拟中,每次重新连接尝试都需要1秒的睡眠时间:

如果我查阅正式文档,则默认值为重新连接间隔为10秒.重新连接间隔为10秒.

#reconnect_interval=10 #尝试重新连接到不可访问的#主节点(或其他上游节点)之间的间隔

我试图在repmgr.conf中更改重新连接尝试和间隔的值,并重新启动repmgr的服务,并使用"repmgr备用寄存器-强制“,但不起作用。

我的REPMGR.CONF

代码语言:javascript
复制
node_id = 2
node_name = 'PGCluster02'
data_directory='/var/lib/postgresql/12/main'
conninfo = 'host=PGCluster02 port=1010 user=my_repmgr dbname=dbrepmgr connection_timeout=2'
use_replication_slots=1
reconnect_attempts=30
reconnect_interval=10
failover=automatic
promote_command='/usr/bin/repmgr standby promote -f /etc/repmgr.conf --log-to-file'
follow_command='/usr/bin/repmgr standby follow -f /etc/repmgr.conf --log-to-file --upstream-node-id=%n'

环境

代码语言:javascript
复制
PostgreSQL Version: 12.5
REPMGR Version: 5.2
Debian version: 10

我环境中的其他工具是Barman (另一个VM)和PGBouncer (当前VM)。

如何将重新连接间隔更改为10秒或15秒?有人能帮我吗?我想把我的故障恢复时间延长到5分钟。

谢谢你!!

EN

回答 1

Database Administration用户

回答已采纳

发布于 2020-12-04 11:07:19

我也有同样的问题,已经解决了:

https://github.com/2ndQuadrant/repmgr/issues/673

问题已经复制,并应用了修复,这将在即将发布的5.2.1版本中。

票数 2
EN
页面原文内容由Database Administration提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://dba.stackexchange.com/questions/280180

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档