When we do a load testing for a Rest API which is developed using dotnetcore with 10000 users and 100 ramp up finally ended up with 502 bad gateway error.
There are many outbound api calls are happening inside our application which uses singletone httpclient instance.
The connections crosses more than 1920 limit and also the response time crosses 2 min default time. Here is appservice metrics.

We wanted to set autoscale rule in appservice to balance the load and avoid 502 bad gateway error. But I don't find any options related to connections and response time.

