admin 管理员组

文章数量: 1086019

I am running K6 inside AKS to perform load testing on a website hosted in Azure App Service. However, once the test reaches 1000 virtual users (VUs), the requests start returning status 0 with a dial i/o timeout error.

I have also observed the same issue when testing a static website hosted in Azure Blob Storage behind an Application Gateway.

Could there be any network configurations or limitations in Azure that are causing this issue?

I am running K6 inside AKS to perform load testing on a website hosted in Azure App Service. However, once the test reaches 1000 virtual users (VUs), the requests start returning status 0 with a dial i/o timeout error.

I have also observed the same issue when testing a static website hosted in Azure Blob Storage behind an Application Gateway.

Could there be any network configurations or limitations in Azure that are causing this issue?

Share Improve this question edited Apr 2 at 20:34 Mihir Saxena 72 bronze badges asked Mar 27 at 9:47 prosecutorprosecutor 194 bronze badges 1
  • Try to deploy a NAT Gateway to the AKS subnet and assign multiple public IPs for more SNAT capacity. Scale your App Gateway and App Service to higher SKUs to prevent throttling under high load. Optimize DNS resolution in AKS by scaling CoreDNS and reducing unnecessary lookups in K6. If this does not fix the issue, consider running K6 from outside AKS such as from a VM in the same VNet or by using Azure Load Testing to isolate whether the problem lies with AKS networking specifically. – Arko Commented Apr 2 at 9:49
Add a comment  | 

1 Answer 1

Reset to default 1

Azure Network Limits Impacting K6 Performance Testing Troubleshooting

Thanks, @arko, for guiding in the right direction, I do agree with the points you shared.

As you mentioned, when running load tests with a high number of virtual users, sometimes connection limits which results in timeouts or failures. To overcome these, follow the steps mentioned below.

As per the Microsoft doc shared, deploy a NAT Gateway in the AKS subnet and assign multiple public IPs to provide increased SNAT capacity.

Because of this the outbound traffic are possible without hitting SNAT port exhaustion limits which results in overcome the blocker mentioned.

Also refer to Stack link answered by marcor92 & also Q&A link answered by msrini-MSFT discussing on the similar issue.

Scale CoreDNS in AKS to handle more DNS queries efficiently. Additionally, optimize your K6 test script to reduce unnecessary DNS lookups by minimizing hostnames or caching DNS results when possible.

Refer:

https://learn.microsoft/en-us/azure/application-gateway/high-traffic-support

本文标签: Azure Network Limits Impacting K6 Performance TestingStack Overflow