Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/26/11 23:18:58 (14 years ago)
Author:
cneumuel
Message:

#1233

  • minor improvements
  • binaries
  • stats
Location:
branches/HeuristicLab.Hive-3.4/sources
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/app.config

    r6357 r6478  
    66
    77  <configSections>
    8     <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    9       <section name="HeuristicLab.Clients.Hive.Slave.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
     8    <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
     9      <section name="HeuristicLab.Clients.Hive.SlaveCore.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
    1010    </sectionGroup>
    1111  </configSections>
    1212  <userSettings>
    13     <HeuristicLab.Clients.Hive.Slave.Properties.Settings>
    14       <setting name="Guid" serializeAs="String">
    15         <value>00000000-0000-0000-0000-000000000000</value>
     13    <HeuristicLab.Clients.Hive.SlaveCore.Properties.Settings>
     14      <setting name="HeartbeatInterval" serializeAs="String">
     15        <value>00:00:10</value>
    1616      </setting>
    17     </HeuristicLab.Clients.Hive.Slave.Properties.Settings>
     17      <setting name="LastUsedFileName" serializeAs="String">
     18        <value>lastUsed.dat</value>
     19      </setting>
     20      <setting name="PluginCacheDir" serializeAs="String">
     21        <value>PluginCache</value>
     22      </setting>
     23      <setting name="PluginTempBaseDir" serializeAs="String">
     24        <value>PluginTemp</value>
     25      </setting>
     26      <setting name="ConfigurationName" serializeAs="String">
     27        <value>Configuration</value>
     28      </setting>
     29      <setting name="PluginInfrastructureDll" serializeAs="String">
     30        <value>HeuristicLab.PluginInfrastructure-3.3.dll</value>
     31      </setting>
     32      <setting name="SharpZipLibDll" serializeAs="String">
     33        <value>ICSharpCode.SharpZipLib.dll</value>
     34      </setting>
     35      <setting name="SharpZipLibLicense" serializeAs="String">
     36        <value>ICSharpCode.SharpZipLib License.txt</value>
     37      </setting>
     38      <setting name="ClientsHiveSlaveCoreDll" serializeAs="String">
     39        <value>HeuristicLab.Clients.Hive.SlaveCore-3.4.dll</value>
     40      </setting>
     41      <setting name="ClientsHiveDll" serializeAs="String">
     42        <value>HeuristicLab.Clients.Hive-3.4.dll</value>
     43      </setting>
     44      <setting name="HiveDll" serializeAs="String">
     45        <value>HeuristicLab.Hive-3.4.dll</value>
     46      </setting>
     47      <setting name="ClientsCommonDll" serializeAs="String">
     48        <value>HeuristicLab.Clients.Common-3.3.dll</value>
     49      </setting>
     50      <setting name="PluginLifetime" serializeAs="String">
     51        <value>3</value>
     52      </setting>
     53      <setting name="DirOpSleepTime" serializeAs="String">
     54        <value>00:00:01</value>
     55      </setting>
     56      <setting name="PluginDeletionRetries" serializeAs="String">
     57        <value>5</value>
     58      </setting>
     59      <setting name="PluginDeletionTimeout" serializeAs="String">
     60        <value>00:00:01</value>
     61      </setting>
     62      <setting name="ExecutorSemTimeouts" serializeAs="String">
     63        <value>00:00:46</value>
     64      </setting>
     65      <setting name="QueuesMaxThreads" serializeAs="String">
     66        <value>5000</value>
     67      </setting>
     68      <setting name="SlaveCommunicationServiceEndpoint" serializeAs="String">
     69        <value>SlaveCommunicationServiceEndpoint</value>
     70      </setting>
     71      <setting name="SlaveUser" serializeAs="String">
     72        <value>hiveslave</value>
     73      </setting>
     74      <setting name="SlavePwd" serializeAs="String">
     75        <value>hiveslave</value>
     76      </setting>
     77    </HeuristicLab.Clients.Hive.SlaveCore.Properties.Settings>
    1878  </userSettings>
     79 
    1980
    2081  <system.serviceModel>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/HiveJobs/OptimizerHiveJob.cs

    r6381 r6478  
    197197      }
    198198
     199      childHiveJobsLock.EnterReadLock();
    199200      OptimizerHiveJob child = (OptimizerHiveJob)this.ChildHiveJobs.Single(j => j.Job.Id == childJobId);
    200       childHiveJobsLock.EnterReadLock();
    201201      try {
    202202        if (!optimizerJob.ComputeInParallel) {
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/RefreshableHiveExperiment.cs

    r6431 r6478  
    136136        jobResultPoller = new JobResultPoller(hiveExperiment.Id, /*ApplicationConstants.ResultPollingInterval*/new TimeSpan(0, 0, 5)); //TODO: find a better place for ApplicationConstants
    137137        RegisterResultPollingEvents();
    138         jobResultPoller.AutoResumeOnException = !IsControllable;
     138        jobResultPoller.AutoResumeOnException = true;
    139139      }
    140140
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/Interfaces/IHiveDao.cs

    r6457 r6478  
    116116    IEnumerable<DT.Resource> GetAssignedResources(Guid jobId);
    117117    IEnumerable<DT.Resource> GetParentResources(Guid resourceId);
     118    IEnumerable<DT.Resource> GetChildResources(Guid resourceId);
    118119    IEnumerable<DT.Job> GetJobsByResourceId(Guid resourceId);
    119120    #endregion
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4/Status.aspx

    r6469 r6478  
    125125      PaletteCustomColors="79, 129, 189">
    126126      <Series>
    127         <asp:Series ChartType="Area" Name="Cores" XValueType="DateTime" YValueType="Double">
     127        <asp:Series ChartType="Area" Name="Speedup" XValueType="DateTime" YValueType="Double">
     128        </asp:Series>
     129        <asp:Series BorderWidth="2" ChartArea="ChartArea1"
     130          ChartType="Line" Color="185, 205, 150" Name="Cores">
    128131        </asp:Series>
    129132      </Series>
     
    147150    <asp:Chart ID="speedupChartHours" runat="server" Palette="None" Width="1900px" PaletteCustomColors="79, 129, 189">
    148151      <Series>
    149         <asp:Series ChartType="Area" Name="Cores" XValueType="DateTime" YValueType="Double">
     152        <asp:Series ChartType="Area" Name="Speedup" XValueType="DateTime"
     153          YValueType="Double">
     154        </asp:Series>
     155        <asp:Series BorderWidth="2" ChartArea="ChartArea1"
     156          ChartType="Line" Color="185, 205, 150" Name="Cores">
    150157        </asp:Series>
    151158      </Series>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4/Status.aspx.cs

    r6469 r6478  
    1414  protected void Page_Load(object sender, EventArgs e) {
    1515    var dao = ServiceLocator.Instance.HiveDao;
    16     var onlineSlaves = dao.GetSlaves(x => x.SlaveState == SlaveState.Calculating || x.SlaveState == SlaveState.Idle);
     16    var resourceName = Request.QueryString["resource"];
     17    IEnumerable<Guid> resourceIds;
     18    if (!string.IsNullOrEmpty(resourceName)) {
     19      var resId = dao.GetResources(x => x.Name == resourceName).Single().Id;
     20      resourceIds = dao.GetChildResources(resId).Select(x => x.Id).Union(new List<Guid> { resId });
     21      speedupChartHours.Visible = false;
     22      speedupChartMinutes.Visible = false;
     23    } else {
     24      resourceIds = dao.GetResources(x => true).Select(y => y.Id);
     25      speedupChartHours.Visible = true;
     26      speedupChartMinutes.Visible = true;
     27    }
     28
     29    var onlineSlaves = dao.GetSlaves(x => (x.SlaveState == SlaveState.Calculating || x.SlaveState == SlaveState.Idle) && resourceIds.Contains(x.ResourceId));
    1730
    1831    int currentlyAvailableCores = onlineSlaves.Sum(s => s.Cores.Value);
     
    2437    this.waitingJobsLabel.Text = currentlyJobsWaiting.ToString();
    2538
    26     slavesLabel.Text = string.Join(", ", onlineSlaves.Select(x => string.Format("{0} ({1} %)", x.Name, Math.Round(x.CpuUtilization, 2))));
     39    slavesLabel.Text = string.Join(", ", onlineSlaves.Select(x => string.Format("<a href=\"?resource={0}\">{0}</a> ({1} %)", x.Name, Math.Round(x.CpuUtilization, 2))));
    2740
    2841    cpuUtilizationLabel.Text = (onlineSlaves.Count() > 0 ? Math.Round(onlineSlaves.Average(s => s.CpuUtilization), 2).ToString() : "0.0") + " %";
     
    3043    HeuristicLab.Services.Hive.Common.DataTransfer.Statistics[] stats;
    3144    if (daysDropDownList.SelectedValue == "All")
    32       stats = dao.GetStatistics(x => true).OrderByDescending(x => x.TimeStamp).ToArray();
     45      stats = dao.GetStatistics(x => true).OrderBy(x => x.TimeStamp).ToArray();
    3346    else
    34       stats = dao.GetStatistics(x => x.Timestamp >= DateTime.Now.Subtract(TimeSpan.FromDays(int.Parse(daysDropDownList.SelectedValue)))).OrderByDescending(x => x.TimeStamp).ToArray();
     47      stats = dao.GetStatistics(x => x.Timestamp >= DateTime.Now.Subtract(TimeSpan.FromDays(int.Parse(daysDropDownList.SelectedValue)))).OrderBy(x => x.TimeStamp).ToArray();
    3548
    3649    var firstStatisticsDate = DateTime.Parse("2011-05-24 17:16:40");
    3750    var statisticsSince = DateTime.Now - firstStatisticsDate;
    38     totalExecutionTimeLabel.Text = new TimeSpan(stats.First().UserStatistics.Sum(x => x.ExecutionTime.Ticks)).ToString() + " (since " + Math.Round(statisticsSince.TotalDays, 2) + " days)";
    39 
     51    totalExecutionTimeLabel.Text = new TimeSpan(stats.Last().UserStatistics.Sum(x => x.ExecutionTime.Ticks)).ToString() + " (since " + Math.Round(statisticsSince.TotalDays, 2) + " days)";
     52   
    4053    for (int i = 0; i < stats.Length; i++) {
    4154      var s = stats[i];
     55      var slaveStats = s.SlaveStatistics.Where(x => resourceIds.Contains(x.SlaveId));
    4256
    43       var averageCpuUtilization = s.SlaveStatistics.Count() > 0 ? s.SlaveStatistics.Average(x => x.CpuUtilization) : 0.0;
     57      var averageCpuUtilization = slaveStats.Count() > 0 ? slaveStats.Average(x => x.CpuUtilization) : 0.0;
    4458      cpuUtilizationChart.Series[0].Points.Add(new DataPoint(s.TimeStamp.ToOADate(), averageCpuUtilization));
    4559
    46       var cores = s.SlaveStatistics.Sum(x => x.Cores);
     60      var cores = slaveStats.Sum(x => x.Cores);
    4761
    48       var usedCores = cores - s.SlaveStatistics.Sum(x => x.FreeCores);
     62      var usedCores = cores - slaveStats.Sum(x => x.FreeCores);
    4963      coresChart.Series[0].Points.AddXY(s.TimeStamp.ToOADate(), cores);
    5064      coresChart.Series[1].Points.AddXY(s.TimeStamp.ToOADate(), usedCores);
    5165
    52       var memory = s.SlaveStatistics.Sum(x => x.Memory);
    53       var usedMemory = memory - s.SlaveStatistics.Sum(x => x.FreeMemory);
    54       memoryChart.Series[0].Points.AddXY(s.TimeStamp.ToOADate(), memory/1024);
    55       memoryChart.Series[1].Points.AddXY(s.TimeStamp.ToOADate(), usedMemory/1024);
     66      var memory = slaveStats.Sum(x => x.Memory);
     67      var usedMemory = memory - slaveStats.Sum(x => x.FreeMemory);
     68      memoryChart.Series[0].Points.AddXY(s.TimeStamp.ToOADate(), memory / 1024.0);
     69      memoryChart.Series[1].Points.AddXY(s.TimeStamp.ToOADate(), usedMemory / 1024.0);
    5670
    5771      if (i > 0) {
     
    6377        var speedup = execTimeDifference.TotalMinutes / timeDifference.TotalMinutes;
    6478        speedupChartMinutes.Series[0].Points.AddXY(s.TimeStamp.ToOADate(), speedup);
     79        speedupChartMinutes.Series[1].Points.AddXY(s.TimeStamp.ToOADate(), cores);
    6580      }
    6681      if (i - 60 >= 0) {
     
    7287        var speedup = execTimeDifference.TotalMinutes / timeDifference.TotalMinutes;
    7388        speedupChartHours.Series[0].Points.AddXY(s.TimeStamp.ToOADate(), speedup);
     89        speedupChartHours.Series[1].Points.AddXY(s.TimeStamp.ToOADate(), cores);
    7490      }
    7591    }
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4/Web.config

    r6463 r6478  
    3636  </connectionStrings>
    3737  <system.web>
     38    <httpHandlers>
     39      <add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
     40        validate="false" />
     41    </httpHandlers>
    3842    <compilation debug="true" targetFramework="4.0">
    3943      <assemblies>
Note: See TracChangeset for help on using the changeset viewer.