My server going to idle mode frequently

Prabhakaran 20 Reputation points
2024-09-26T14:12:12.1+00:00

I have using golang as back end. when ever i try to push the docker image its working fine. but the api service going to idle mode after couple of days. i have to push the docker image again to restart service then API starts working.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,971 questions
{count} votes

Accepted answer
  1. Adharsh Santhanam 6,020 Reputation points Volunteer Moderator
    2024-09-26T17:12:41.7766667+00:00

    Hello Prabhakaran, here are some ideas to solve your idling issue.

    • Check your App Service Plan - Ensure that your App Service Plan is configured correctly and has enough resources to handle your application’s workload. Sometimes, scaling up the plan can help prevent the service from going idle.
    • Always On setting - Make sure the "Always On" setting is enabled for your app service. This setting keeps the app running even when there are no HTTP requests, which can prevent it from going idle.
    • Health checks - Implement health checks to ensure your service is running correctly. Azure app services can automatically restart your app if it fails a health check.
    • Logging and monitoring - Enable logging and monitoring to track the performance and behavior of your application. This can help you identify any issues that might be causing the service to go idle.
    • Container restart policies - Check your Docker container’s restart policies. Ensure that it is set to restart on failure or always, which can help keep your service running.
    • Idle timeout setting - Review the idle timeout settings for your App Service. Adjusting these settings can help prevent the service from going idle too quickly.

    If the issue still persists, you would want to open a support ticket with Microsoft directly.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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