How to get notified when Diagnostic events occurs

Svend Tofte 0 Reputation points
2024-07-24T11:23:44.4+00:00

Last night, we had an event where all of our app services worker processes were recycled. This lead to some strange errors and also an MySql-in-app service not restarting as well (or because of?).

Initially we just saw some strange error logs while we could see that MySql-in-app was not running (we use it for a small production setup). Finally, after alot of digging in Application Insights and on-premise event logs (we have an SQL Server networked in via VPN), we noticed this thing here:

User's image

The full message is:

... your application was recycled due to an intermittent Azure infrastructure issue while accessing remote file storage. This can happen due to multiple reasons like platform instances getting upgraded or instance(s) experiencing high latencies accessing the remote storage. In case the instance(s) where your application is running is experiencing high latencies accessing remote storage, the platform tries to heal your application by switching to different remote storage which is having low latency. This can also cause the application process to restart. If this is a one off occurrence, then no further action plan is needed from your side. But if you see it occur frequently, then enabling local cache feature can help reduce dependency on storage file servers to some extent.

This message seems to appear in all App Services, running on our App Service Plan. The timestamp is also the same. Our ASP is a Windows based P3v2 with a single instance (I know). It's hosted in North Europe, and from the Service Health app, I don't see any issues that would have impacted us.

So now I have a few questions:

  1. Is there any way to find out the REAL cause here? Was the storage at issue something we've setup, or something internal to Azure?
  2. Is this message/recycling feature related to Proactive Auto-Heal? We do run a Windows plan and the feature is enabled.
  3. And perhaps most importantly, is there any way to get notified when this occurs? I've been looking through Azure Monitor, but I cannot find anything. Possibly I need to setup diagnotics settings for the App Service Plan, or something else?
Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,265 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,764 questions
0 comments No comments
{count} votes

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.