Azure API Management latency of over 5 seconds

Sateesh Anagani 6 Reputation points
2022-09-28T18:33:07.557+00:00

We are seeing APIM latency spikes morethan 5s, when we check details roundtrip latency utilizing more time.
observed during the spike AKS pods were restarting and Disk IO for particular node we can see spike at the same time.
when we check pod logs its showing due to probe failure.

please help on that what is causing issue. we were not able to find resolution.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,806 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MuthuKumaranMurugaachari-MSFT 22,236 Reputation points
    2022-09-30T14:56:55.037+00:00

    @Anonymous Thank you for reaching out to Microsoft Q&A. Based on your statement, I assume you have AKS Pods as a backend service for APIM and found Pods were having some issues around that time (during spike). Is my understanding correct?

    Do you have diagnostics settings configured for the APIM instances? If so, you can review Resource logs to understand where the latency occurs. ApiManagementGatewayLogs provides the following info and from which you can calculate APIM time = TotalTime - BackendTime - ClientTime.

    BackendTime - Number of milliseconds spent on overall backend I/O (connecting, sending, and receiving bytes)
    ClientTime - Number of milliseconds spent on overall client I/O (connecting, sending, and receiving bytes)
    TotalTime - Number of milliseconds spent on overall HTTP request (from first byte received by API Management to last byte a client received back)

    Based on that, you can troubleshoot if the problem occurs in AKS Pods or APIM. Please review and share the details. If you haven't enabled diagnostics settings, azure support team can help you investigate this from our backend logs. I would recommend creating one or let me know if you don't have a support plan. I can assist you with one-time free technical support.