Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API call gets an error: "QueuePool limit of size 5 overflow 10 reached" #387

Closed
EyalBerger opened this issue Mar 10, 2022 · 4 comments
Closed
Assignees

Comments

@EyalBerger
Copy link
Collaborator

Hi, I am not able to access the API for the last few hours (Python or Web), and getting the above error.

Request URL: https://open-bus-stride-api.hasadna.org.il/siri_vehicle_locations/list?siri_routes__line_ref=12406

Error message: QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30.00 (Background on this error at: https://sqlalche.me/e/14/3o7r)

From the link I understand this could be because the connection pool is full, or because completed connections are not getting closed correctly.

any suggestions what to do?

@OriHoch
Copy link

OriHoch commented Mar 11, 2022

Looks like a lot of idle transactions in the DB from the api

postgres_pg_catalog_pg_stat_activity.xlsx

@OriHoch
Copy link

OriHoch commented Mar 11, 2022

@EyalBerger I restarted the API, so requests are working now, but it's possible that this will occur again after too many requests are made, I will try to fix the root cause

@OriHoch
Copy link

OriHoch commented Mar 11, 2022

fixed + deployed

@OriHoch OriHoch closed this as completed Mar 11, 2022
@OriHoch OriHoch moved this from In Progress to Done in open-bus-stride Mar 11, 2022
@EyalBerger
Copy link
Collaborator Author

Great, thanks @OriHoch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants