-
Notifications
You must be signed in to change notification settings - Fork 286
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
Connecting to many different instances #513
Comments
Could you provide us your connection string & also let us know which platform (Windows/Unix) your Azure function corresponds to? Also could you give v1.1.1 a try and confirm if you face similar issue? |
Hi @cheenamalhotra , Our azure function platform is windows. We have 2 types of connection:
azure active directory user:
We will try soon v1.1.1. |
Your connection timeout 5 seems pretty low to me when working with multiple connections. Azure connections get generally slow when working in multiple parallel threads. We fixed similar issues in #466 in 2.0.0-preview2 but that was related to pooling, I would still request you to give that a try and let us know if you face issue again. If yes, please wrap us a repro app and link it here that we can try to reproduce and investigate. |
Do you have any update on this issue? |
Hi @cheenamalhotra, I tried to use v1.1.2, it had the same issue. Currently, we do 3 retries with a jittered back-off policy. |
We've identified 1 issue with Transient Fault Handling, and fix is in PR #637 - would you like to try and let us know if that makes a difference in your case? |
Pinging again, please let me know if you could try the fix from PR #637 or provide us a repro by any chance? |
Closing due to inactivity. |
Hello,
I would like to consult about a special case of connecting multiple different databases.
We are building a system using Azure Function.
Each minute our system connects to many different SQL Azure instances.
So I don't see a reason to use connection pooling because every time we connect to the SQL azure it will be from different processes of azure function.
So we set pooling attribute to be false.
Then we got the following error:
"Timeout attempting to open the connection. The time period elapsed prior to attempting to open the connection has been exceeded. This may have occurred because of too many simultaneous non-pooled connection attempts."
If we don't use connection pool why we weren't able to open a connection?
What approaches do you suggest in this case?
BTW, we use Microsoft.Data.SqlClient(1.1.0) with .NET core 2.2
Thank
The text was updated successfully, but these errors were encountered: