增量同步失败报错,关键词“remaining connection slots are reserved”
场景描述
增量同步期间DRS任务报错,同步日志界面提示:service INCREMENT failed, cause by: Unable to connect to DBMS: url=%s user=%s, Caused by: FATAL: remaining connection slots are reserved for non-replication superuser connections
可能原因
可登录至目标库RDS for PostgreSQL,执行如下SQL进行验证:
- 查看max_connections:
show max_connections;
- 查看当前连接数:
select count(*) from pg_stat_activity;
解决方案
在目标库RDS for PostgreSQL控制台修改max_connections参数为较大的值,并使其生效,每个DRS任务大约需要100个连接。