简体   繁体   English

与Postgresql的远程连接超时

[英]Timeout of remote connection to Postgresql

I have two EC2 instances, one of them needs to insert large amounts of data into a Postgresql db that lives on the other one. 我有两个EC2实例,其中一个实例需要将大量数据插入另一个实例中的Postgresql数据库中。 Incidentally it's Open Street Map data and I am using the osm2pgsql utility to insert the data, not sure if that's relevant, I don't think so. 顺便说一句,这是“开放街道地图”数据,我正在使用osm2pgsql实用程序插入数据,不确定是否相关,我认为不是。

For smaller inserts everything is fine but for very large inserts something times out after around 15 minutes and the operation fails with: 对于较小的刀片,一切都很好,但是对于非常大的刀片,大约15分钟后会超时,并且操作失败并显示以下信息:

COPY_END for planet_osm_point failed: SSL SYSCALL error: Connection timed out

Is this timeout enforced by Postgresql, Ubuntu or AWS? 此超时由Postgresql,Ubuntu或AWS强制执行吗? Not too sure where to start troubleshooting. 不太确定从哪里开始进行故障排除。

Thanks 谢谢

Could be caused by renegotiation. 可能是重新协商引起的。 Check the log, and maybe tweak ssl_renegotiation_limit = 512MB (the default) setting it to zero will disable negotiation 检查日志,也许将ssl_renegotiation_limit = 512MB (默认值)调整为零将禁用协商

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM