container instance no response sometimes

Chris Yang 20 Reputation points
2025-11-10T23:42:19.2433333+00:00

Hi,

We deployed a web app (Mageai) on the container instance, but sometimes the web just hangs up loading and results in no response. And at the same time if you open the portal, you can see the cpu and network drop to 0. And maybe after a few hours, the web will be back online. We also check the container events, during the 'no response' time, there were no 'killing' and 'started' events.

That happens very frequently; it may work today, but fail to load tomorrow. Could you give us some suggestions on how to troubleshoot it?

Azure Container Instances
{count} votes

1 answer

Sort by: Most helpful
  1. Himanshu Shekhar 1,935 Reputation points Microsoft External Staff Moderator
    2025-11-12T17:03:34.3233333+00:00

    Chris Yang

    Unlike App Services, ACI containers can be deallocated on idle which cause cold starts on the next request when the container has to be pulled, started, and initialized again.

    This process delays or hangs if the container or app initialization takes long. There is no built-in "Always On" toggle in ACI to prevent this.

    If you are keeping the container always warm is critical then Azure Container Apps, which supports "Always On" through minimum replicas configuration, reducing cold starts.

    Reducing cold-start time on Azure Container Apps https://learn.microsoft.com/en-us/azure/container-apps/cold-start

    Since, MageAI uses mounted blob storage, network or storage access issues can cause the application to freeze while waiting for data.

    During these hang periods, monitor network connectivity, DNS resolution, and the health of the storage account. - https://learn.microsoft.com/en-us/azure/container-instances/container-instances-troubleshooting

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.