Hello all!
Great product. Eagerly waiting for more stuff being shared around neon database.
We are currently testing out our staging and testing systems on neon in combination with branching and an easier workflow. Everything works great and the API is clear and easy to use (even though an SDK would be great).
The only problem that we are running into is that we receive connection errors several times a day.
We are using prisma to do all of our DB related stuff
Our guess is/was that the database was automatically scaled down to 0 and our system tries to send new queries and then fails with:
Server has closed the connection
Timed out fetching a new connection from the connection pool. More info: http://pris.ly/d/connection-pool (Current connection pool timeout: 30, connection limit: 17)
We activated connection pooling on the project and also telling prisma via the DB_URL to use ?pgbouncer=true
In order to solve the issue with Can't reach database server at...
we added ?pgbouncer=true&connect_timeout=15&pool_timeout=30
so that the neon DB has some time to scale up from 0.
The connection pooling issue in my opinion should be solved by activating PGbouncer and telling prisma to use it, but this doesn’t seem to work. Is there any need to use ?connection_limit=
on the database url string?
It would be great to get any guidance on on to be able to solve these two issues with our Prisma → NeonDB.
Best regards,
Markus