You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 27, 2024. It is now read-only.
When too many database connections are started, Diesel produces this error:
[ERROR r2d2] Too many connections
The problem is, that this error is being spammed hundreds of times, until the lambda function times out, after which it starts another function, which immediately gives the same error, looping again and again.
This has happened 15 times in 3 seconds, after which it stopped (somehow). The server stops functioning completely at this point, until I redeploy it.
The reason I'm submitting this here is that I have only ever seen this issue when running the application on Lambda, and the error handling is fatal.
The text was updated successfully, but these errors were encountered:
Hi, this also happens to me.
Rocket.rs is fully synchronous at the moment. When you use RDBMS on serverless the usual problem is sessions. When you use r2d2 to create a pool you are creating one connection per core. Check if your database runs out of connections. I think we should look for a way to handle a pool on serverless or wait for the rocket.rs 0.5 version (currently on dev) which is already set up for async RDBMS.
When too many database connections are started, Diesel produces this error:
The problem is, that this error is being spammed hundreds of times, until the lambda function times out, after which it starts another function, which immediately gives the same error, looping again and again.
This has happened 15 times in 3 seconds, after which it stopped (somehow). The server stops functioning completely at this point, until I redeploy it.
The reason I'm submitting this here is that I have only ever seen this issue when running the application on Lambda, and the error handling is fatal.
The text was updated successfully, but these errors were encountered: