Windows Azure: Slow connection to Azure VM and SQL database - azure

I have an Azure VM configured with IIS role and a web service application installed in it. This web service application makes a call to an Azure SQL Database.
When I first configured the servers, the connection was pretty good (1-2 seconds response time), in the past 2 days the connection to the server has been very slow (15-20 seconds response time when it doesn't timeout). Is there anything I should be aware of int he Azure servers to make the connection faster?

Related

Max Pool Size in web.config running on IIS Web Server

I have a cloud-based application where there can be up to 5000 "worker nodes" communicating with a web server. All 5000 could be started simultaneously and once online, would call an API method to pick-up a job. This API method in turn calls a SQL Server stored procedure to get the job details and return a response to the individual node. To prevent multiple nodes getting the same job, the stored procedure puts a lock on a particular database table while it executes.
Web Server is Windows 2016 Server running IIS 10.
SQL Server is Microsoft SQL Server Standard 2017
My question is how to best manage these connections through web.config or IIS settings. As far as I know, my main levers are
Max Pool Size in web.config
Connection time-out for IIS Site
I can increase the pool size to 10,000 of course and set the connection time-out to 2 or 3 minutes but I'm not sure if there's a best practice for managing something like this.

Azure connection idle timeout

Could you please show me how to manipulate Azure connection idle timeout?
Now I am using Azure VM and host my web application in IIS. My App calls rest service from the outside network and it takes 5-10 minutes to get the response back. I have read that Azure will close any connection if there is no response more than 4 minutes. I tried to set idle timeout to 30 minutes from the Azure portal public IP configuration, but it doesn't fix the issue.

Successfully established hybrid connection loses connection after 20 minutes (restart of azure hybrid connection service requiered)

I have a little problem while using hybrid connections in Azure to connect a local resource. I installed the connection manager successfully and established a connection to the on premise resource, everything works fine...
But after around 20 minutes the connection gets lost until I restart the azure hybrid connection service on the on premise server.
The AppService is connected to more than one server and all other connections work well. Does anyone have an idea how to fix this problem and establish a stable connection?
We encountered similar issues with Azure endpoints. We resolved it by having a scheduled message sent to the local BizTalk web services every 3 minutes to keep it alive.

Multiple Azure Sql Databases with one Web App Instance

Hi I'm working on an application that has 200+ SQL Azure databases and one Web App instance.
The web application is frequently calling all these databases depending on the request (only one database connection is used per request).
The problem we have seen lately is that timeouts/other connectivity issues is happening more frequently.
I'm starting to think that it could be all the tcp/connections that needs to be maintained by the connection pool. Because of Azure SQL there will be one database connection per database in the pool, they can't share connection.
Is my assumption correct or could there be anything else?

Bad outgoing connection in Azure VM

I have a virtual machine with CentOs in Azure. Running a web-based application with a connection to the database (via public endpoint).
There is one machine with CentOs, which runs a database (MySQL). Approximately 30% of the connections to the database from the web application failed.
I also use API Facebook, and there are also problems with the connection.
What is the size of your Azure VM? Please note that there are I/O quotas applied to each VM size. Thus XS sized VM has just 20mbps connection, where XL can be up to 1Gbps.
Also please make sure you have Azure VM in an Azure Data Centre location which is closest to your MySQL Db.
I run a code that utilizes FB API on Medium sized VM (Worker Role) and don't have issues with it.

Resources