Anybody ever faced this error before? ```Error in ...
# orm-help
k
Anybody ever faced this error before?
Copy code
Error in connector: Error creating a database connection. (Timed out fetching a connection from the pool (connection limit: 50, in use: 17))
on aws elastic beanstalk
r
k
What do you think of this @Ryan?
r
There was a spike in requests it seems but this is long running server so you could try increasing the connection limit and check.
k
It was set to 50, but I have changed it some time ago to 100. This elastic beanstalk has 3 apps; a frontend website + a blog + backend api.
j
The error message indicates this is a older version.
This might very well be something already fixed in a newer version.
You can also increase the
pool_timeout
in newer versions.
Fundamentally I would say the database was unresponsive for a bit, and then things snowballed from there 😕
k
@janpio yeah, we're at v2.19 and hoping to upgrade soon. I really hope that this issue has been fixed in later versions.
👍 1
what values do you recommend for
pool_timeout
?
j
If you are hitting the error, double it.
The default is quite sensible with 10s (I think), but a simple way to avoid it might be to just double it.
k
I'll attempt other related fixes, and if they don't work, then I'll double the pool timeout. Thank you guys.