Azure Load balancer - Azure VM Connection Limit

Amar-Azure-Practice 656 Reputation points
2021-09-15T17:25:30.707+00:00

Hi All
We have a 2 Azure VM where REST services were running on IIS, Azure load balancer is created with the backend pool of these 2 vms., and configured rules and Probing rules.
everything is working fine , when we call the azure load balancer IP , Azure load balancer is taking the request and transferring the request to backend pool and getting the response.

This is fine under small load scenario, when we started with Load test with SOAPUI we are getting time out requests and only few request are getting success.

services running on the VM can support multiple concurrent requests, But some where on the VM level/ Azure load balancer is restricting multiple connections to the backed pools.

i need your suggestion here.

Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
397 questions
{count} votes

3 answers

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 22,136 Reputation points Microsoft Employee
    2021-09-20T21:05:35.633+00:00

    Hello @Amar-Azure-Practice , apologies for the delayed response here. After going through the additional details above and looking at some similar issues internally. Have you configured the TCP idle timeout in this scenario?(supported only on Standard Load Balancer) I ask because Load Balancer's default behavior is to silently drop flows when the idle timeout of a flow is reached, and if this setting is already enabled you can try and configure the TCP keep-alive with an interval less than the idle timeout setting or increase the idle timeout value see if there is the same observation.
    There are some additional cases to consider here as well. When using Azure Load balancer TCP handshakes occur between client and selected backend VM, so if there is any delay or a pause in connectivity due to high load and if this delay is more than timeout setting set at the host VM it might cause timeout errors. You can try increasing timeout duration for the Host VMs and setting TCP keep-alive might also help in this scenario.
    To help validate this scenario you can perform packet captures using Wireshark at either of these VMs which might give us more insights.

    If this does not help resolve the issue, I think deeper analyses of the set-up and configuration will be required to determine where the requests are getting throttled. You can create a support request for this if you have a support plan. If you do not have a support plane please refer to the private message I will make here shortly.

    Please let me know if there are any concerns, Thank you!


  2. Amar-Azure-Practice 656 Reputation points
    2021-09-21T14:44:46.797+00:00

    Hi Chaitanya,

    Do we have any metrics defined on load balancer to see how many requests Azure load balancer received and how many requests has been transferred to backend pool.

    0 comments No comments

  3. ChaitanyaNaykodi-MSFT 22,136 Reputation points Microsoft Employee
    2021-09-22T20:24:23.743+00:00

    Hello @Amar-Azure-Practice , as load balancer does not interacts with TCP packets themselves I think getting a exact count will be difficult but you can explore the SYN count metric and see if it satisfies the requirement. Additionally you can also look into Data Throughput tab and see if there is any difference in inbound outbound patterns.
    Please let me know if there are any additional concerns I will be glad to continue with our discussion. Thank you!

    0 comments No comments