Trace when Kudu is stopped #498

Closed
suwatch opened this Issue Mar 25, 2013 · 6 comments

Comments

Projects
None yet
3 participants
Owner

suwatch commented Mar 25, 2013

We have a startup trace. Not sure if possible - we should see if there is a way to write a trace during stop. This will make it easier to correlate or understand the behavior.

Owner

davidebbo commented Mar 25, 2013

I have support for shutdown actions in WebActivator, so we might be able to use this. See this for an example.

Owner

davidebbo commented Mar 25, 2013

And obviously, it'll only work if it dies of natural causes :)

Owner

suwatch commented Mar 25, 2013

OK, I will do a quick test on Azure env for happy restart (change appsettings) and see if we can get the trace. For abrupt shutdown, we can't do much. Well at least, lacking of this trace could indicate abrupt shutdown.

Owner

suwatch commented Mar 27, 2013

Here is the sample trace. Uptime is how long since startup. LastRequestTime is how long since last request.

<step title="Process Shutdown" date="03/27 1:08:42" pid="1984,4,13" uptime="00:00:29.2636553" lastrequesttime="00:00:20.2329833" elapsed="0"/>

Owner

davidebbo commented Mar 27, 2013

Looks good.

Owner

suwatch commented Mar 27, 2013

Fix a5f6fd7

@suwatch suwatch closed this Mar 27, 2013

@ghost ghost assigned maggieying Mar 28, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment