Updates and deletes are hanging for ~900 seconds #6315
Replies: 3 comments 2 replies
-
Well the good news is 900 seconds is plenty of time to look around and see where things are blocked. this is a problem that would likely have to do with your database status and/or network. 900 seconds == 15 minutes which does seem like a human -coded timeout of some time. so top level questions:
hopefully these are some areas to get you started. |
Beta Was this translation helpful? Give feedback.
-
Hi,
|
Beta Was this translation helpful? Give feedback.
-
After some investigation with the azure AKS team, we found that our requests were going to the SQL's public IP instead of utilizing the private link. The issue they saw was we were reaching the limit of SNAT connections. As for your questions, our timeouts both in the database and in our use of sqlAlchemy are higher. We are working with a connection pool that has 250 connections and recycle time of 3600. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
We are running using sqlalchemy 1.3.4 with pymysql 0.10.0 on python 2.7.18. Our code runs with multiprocessing without gevent on AKS.
Along the day some of our updates and deletes take around 900 seconds before finishing. This doesn't happen all the time and we are not able to find the reason this happens
Expected behavior
All updates and deletes should take the same time without large spikes
To Reproduce
Not really sure how to reproduce this but I can provide logs as requested
Versions.
This has been happening for a few weeks now and is very badly affecting our production
Any help would be much appreciated
Beta Was this translation helpful? Give feedback.
All reactions