Where are the diagnostics/logs storage tables?

前端 未结 3 433
情书的邮戳
情书的邮戳 2021-01-14 04:14

I have a problem deploying a WebRole (WCF service) to Azure. My WebRole keeps showing buzy for at least 30 minutes, until I abort it. I deploy through Visual Studio 2010. I’

相关标签:
3条回答
  • 2021-01-14 05:00

    I had a similar problem. I had the 'transfer' period set to 1 minute and it would not transfer. However, after I updated it to 5 minutes, I started seeing trace messages in the WADLogsTable. Not sure why that made a difference and haven't found any documentation that talks about a minimum transfer period, but 5 minutes worked for me.

    Also make sure you have appropriate Trace.Writeline() statements in your web/worker role.

    0 讨论(0)
  • 2021-01-14 05:07

    Soren - If you haven't already, you should probably regenerate your storage account access key. It is listed in your original post with your configuration details.

    Another option to help diagnose your problem is Intellitrace. If you are using Visual Studio 2010 Utimate, you can enable Intellitrace with your deployment. This will let you download the Intellitrace log files, and from those you can see some pretty detailed information pertaining to the deployment and startup of your application. There might be some exceptions or other errors being generated that could be causing the prolonged "Busy" state.

    0 讨论(0)
  • 2021-01-14 05:19

    Have you set up a transfer schedule for the Logs table? That is, all logging gets cached in each instance, and you need to explicitly ask for that data to be persisted in table storage on a periodic basis. Here's a trivial example for WADLogsTable:

            var dm = DiagnosticMonitor.GetDefaultInitialConfiguration();
            dm.Logs.ScheduledTransferPeriod = TimeSpan.FromSeconds(5);
            dm.Logs.ScheduledTransferLogLevelFilter = LogLevel.Verbose;
            DiagnosticMonitor.Start("DiagnosticsConnectionString", dm);
    

    Once this is set up, you should see the WADLogsTable table appear after a while.

    You'll need to set up the transfer period and filter for each of the other types as well:

    • Event log
    • Diagnostics infrastructure log
    • Directories
    • Performance counters
    0 讨论(0)
提交回复
热议问题