Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/11/13 10:15:52 (12 years ago)
Author:
fschoepp
Message:

#1888:

  • Janitor is now working as expected in Windows Azure
  • Added basic support for experiments (draggable experiments)
  • Added methods to save/read experiments from TableStorage
  • The job status can now be retrieved by using the GetTasks/GetTaskData methods
  • Added a class to convert JSON-objects to Algorithm instances
  • Web page: Added experiment button to navigation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OaaS/HeuristicLab.Services.Hive.WebRole/WebRole.cs

    r8235 r9215  
    2424using Microsoft.WindowsAzure.Diagnostics;
    2525using Microsoft.WindowsAzure.ServiceRuntime;
     26using System.Diagnostics;
    2627
    2728namespace HeuristicLab.Services.Hive.WebRole {
     
    3132
    3233    public override bool OnStart() {
     34      Trace.WriteLine("Starting Janitor Service...");
     35      try {
     36        DiagnosticMonitorConfiguration diagnosticConfig = DiagnosticMonitor.GetDefaultInitialConfiguration();
     37        /*diagnosticConfig.Directories.ScheduledTransferPeriod = TimeSpan.FromMinutes(1);
     38        diagnosticConfig.Directories.DataSources.Add(AzureLocalStorageTraceListener.GetLogDirectory());*/
     39        diagnosticConfig.Logs.ScheduledTransferPeriod = TimeSpan.FromMinutes(1);
     40        diagnosticConfig.Logs.ScheduledTransferLogLevelFilter = LogLevel.Verbose;
     41        diagnosticConfig.WindowsEventLog.ScheduledTransferPeriod = TimeSpan.FromMinutes(1);
     42        diagnosticConfig.WindowsEventLog.ScheduledTransferLogLevelFilter = LogLevel.Verbose;
     43        DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString", diagnosticConfig);
     44      }
     45      catch (Exception e) {
     46        Trace.WriteLine("Error during diagnostic configuration: " + e.Message);
     47      }
     48
    3349      // To enable the AzureLocalStorageTraceListner, uncomment relevent section in the web.config 
    34       DiagnosticMonitorConfiguration diagnosticConfig = DiagnosticMonitor.GetDefaultInitialConfiguration();
    35       diagnosticConfig.Directories.ScheduledTransferPeriod = TimeSpan.FromMinutes(1);
    36       diagnosticConfig.Directories.DataSources.Add(AzureLocalStorageTraceListener.GetLogDirectory());
    37 
     50     
     51      Trace.WriteLine("Loading diagnostic configuration...");
     52     
    3853      // For information on handling configuration changes
    3954      // see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.
    4055
    4156      // Start Janitorn Service:
    42       janitor = new HiveJanitor();
    43       janitorThread = new Thread(janitor.Run);
    44       janitorThread.IsBackground = true; //dont keep app alive
    45       janitorThread.Start();
    46 
     57      Trace.WriteLine("Starting HiveJanitor...");
     58      try {
     59        janitor = new HiveJanitor();
     60        janitorThread = new Thread(janitor.Run);
     61        janitorThread.IsBackground = true; //dont keep app alive
     62        janitorThread.Start();
     63      }
     64      catch (Exception e) {
     65        Trace.WriteLine("Error during janitor startup: " + e.Message);
     66      }
     67      Trace.WriteLine("Startup completed...");
    4768      return base.OnStart();
    4869    }
     
    5172      janitor.StopJanitor();
    5273      janitorThread.Join();
    53 
    5474      base.OnStop();
    5575    }
Note: See TracChangeset for help on using the changeset viewer.