psycopg2 connection remains in hung state during RDS failover #1762
Replies: 1 comment
-
We cannot support RDS for free: we cannot run any test for free, as it is a paid-for service. If you want to purchase consultancy time feel free to reach out privately. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to connect to postgres database (hosted on AWS RDS server) from python application .
The issue is whenever there is a RDS reboot with failover , the code gets stuck for an hour without throwing "SSL SYSCALL error: Operation timed out" exception . Not just this, the hung state blocks the main process on the EKS pod in which python application is running in turn not allowing any requests to be honored .
On the Contrary, when I simply shutdown the RDS (instead of failover) , the process immediately fails and shows the exception allowing me to do further operations .
Removing any pool strategy also does not work .
What can be done to ensure the execution does not go into hung state rather throws exception right away ?
Beta Was this translation helpful? Give feedback.
All reactions