Skip to content

Connection drops using osm2pgsql-replication on serverless setup (Neon) #2273

Closed Answered by goncalo-oliveira
goncalo-oliveira asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, adding more details for whoever comes looking for a similar issue, although it has nothing to do with osm2pgsql directly.

For the first issue related to the SSL connection being closed unexpectedly, this can occur when the application tries to reuse an idle connection after the Neon compute has been suspended due to inactivity. If you plan to leave a connection idle, it would be good to increment the auto-suspend timer to meet the duration needed, or disable it altogether. The default auto-suspend is 5 minutes, and looking at the endpoint activity, it is suspending roughly 5 minutes after opening.

This explains the behaviour... the connection is inactive for more than five minutes a…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@joto
Comment options

joto Dec 10, 2024
Maintainer

Comment options

You must be logged in to vote
0 replies
Answer selected by goncalo-oliveira
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants