Changeset 6478 for branches/HeuristicLab.Hive-3.4/sources
- Timestamp:
- 06/26/11 23:18:58 (14 years ago)
- 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 6 6 7 7 <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" /> 10 10 </sectionGroup> 11 11 </configSections> 12 12 <userSettings> 13 <HeuristicLab.Clients.Hive.Slave .Properties.Settings>14 <setting name=" Guid" serializeAs="String">15 <value>00 000000-0000-0000-0000-000000000000</value>13 <HeuristicLab.Clients.Hive.SlaveCore.Properties.Settings> 14 <setting name="HeartbeatInterval" serializeAs="String"> 15 <value>00:00:10</value> 16 16 </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> 18 78 </userSettings> 79 19 80 20 81 <system.serviceModel> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/HiveJobs/OptimizerHiveJob.cs
r6381 r6478 197 197 } 198 198 199 childHiveJobsLock.EnterReadLock(); 199 200 OptimizerHiveJob child = (OptimizerHiveJob)this.ChildHiveJobs.Single(j => j.Job.Id == childJobId); 200 childHiveJobsLock.EnterReadLock();201 201 try { 202 202 if (!optimizerJob.ComputeInParallel) { -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/RefreshableHiveExperiment.cs
r6431 r6478 136 136 jobResultPoller = new JobResultPoller(hiveExperiment.Id, /*ApplicationConstants.ResultPollingInterval*/new TimeSpan(0, 0, 5)); //TODO: find a better place for ApplicationConstants 137 137 RegisterResultPollingEvents(); 138 jobResultPoller.AutoResumeOnException = !IsControllable;138 jobResultPoller.AutoResumeOnException = true; 139 139 } 140 140 -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/Interfaces/IHiveDao.cs
r6457 r6478 116 116 IEnumerable<DT.Resource> GetAssignedResources(Guid jobId); 117 117 IEnumerable<DT.Resource> GetParentResources(Guid resourceId); 118 IEnumerable<DT.Resource> GetChildResources(Guid resourceId); 118 119 IEnumerable<DT.Job> GetJobsByResourceId(Guid resourceId); 119 120 #endregion -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4/Status.aspx
r6469 r6478 125 125 PaletteCustomColors="79, 129, 189"> 126 126 <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"> 128 131 </asp:Series> 129 132 </Series> … … 147 150 <asp:Chart ID="speedupChartHours" runat="server" Palette="None" Width="1900px" PaletteCustomColors="79, 129, 189"> 148 151 <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"> 150 157 </asp:Series> 151 158 </Series> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4/Status.aspx.cs
r6469 r6478 14 14 protected void Page_Load(object sender, EventArgs e) { 15 15 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)); 17 30 18 31 int currentlyAvailableCores = onlineSlaves.Sum(s => s.Cores.Value); … … 24 37 this.waitingJobsLabel.Text = currentlyJobsWaiting.ToString(); 25 38 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)))); 27 40 28 41 cpuUtilizationLabel.Text = (onlineSlaves.Count() > 0 ? Math.Round(onlineSlaves.Average(s => s.CpuUtilization), 2).ToString() : "0.0") + " %"; … … 30 43 HeuristicLab.Services.Hive.Common.DataTransfer.Statistics[] stats; 31 44 if (daysDropDownList.SelectedValue == "All") 32 stats = dao.GetStatistics(x => true).OrderBy Descending(x => x.TimeStamp).ToArray();45 stats = dao.GetStatistics(x => true).OrderBy(x => x.TimeStamp).ToArray(); 33 46 else 34 stats = dao.GetStatistics(x => x.Timestamp >= DateTime.Now.Subtract(TimeSpan.FromDays(int.Parse(daysDropDownList.SelectedValue)))).OrderBy Descending(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(); 35 48 36 49 var firstStatisticsDate = DateTime.Parse("2011-05-24 17:16:40"); 37 50 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 40 53 for (int i = 0; i < stats.Length; i++) { 41 54 var s = stats[i]; 55 var slaveStats = s.SlaveStatistics.Where(x => resourceIds.Contains(x.SlaveId)); 42 56 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; 44 58 cpuUtilizationChart.Series[0].Points.Add(new DataPoint(s.TimeStamp.ToOADate(), averageCpuUtilization)); 45 59 46 var cores = s .SlaveStatistics.Sum(x => x.Cores);60 var cores = slaveStats.Sum(x => x.Cores); 47 61 48 var usedCores = cores - s .SlaveStatistics.Sum(x => x.FreeCores);62 var usedCores = cores - slaveStats.Sum(x => x.FreeCores); 49 63 coresChart.Series[0].Points.AddXY(s.TimeStamp.ToOADate(), cores); 50 64 coresChart.Series[1].Points.AddXY(s.TimeStamp.ToOADate(), usedCores); 51 65 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); 56 70 57 71 if (i > 0) { … … 63 77 var speedup = execTimeDifference.TotalMinutes / timeDifference.TotalMinutes; 64 78 speedupChartMinutes.Series[0].Points.AddXY(s.TimeStamp.ToOADate(), speedup); 79 speedupChartMinutes.Series[1].Points.AddXY(s.TimeStamp.ToOADate(), cores); 65 80 } 66 81 if (i - 60 >= 0) { … … 72 87 var speedup = execTimeDifference.TotalMinutes / timeDifference.TotalMinutes; 73 88 speedupChartHours.Series[0].Points.AddXY(s.TimeStamp.ToOADate(), speedup); 89 speedupChartHours.Series[1].Points.AddXY(s.TimeStamp.ToOADate(), cores); 74 90 } 75 91 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4/Web.config
r6463 r6478 36 36 </connectionStrings> 37 37 <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> 38 42 <compilation debug="true" targetFramework="4.0"> 39 43 <assemblies>
Note: See TracChangeset
for help on using the changeset viewer.