Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9369 for branches


Ignore:
Timestamp:
04/17/13 13:53:31 (12 years ago)
Author:
pfleck
Message:

#2030
Aborted transactions are logged into file.
Enabled PerformanceCounter for Service-Operations.
New Slaves are assigned to HEAL ResourceGroup automatically.

Location:
branches/HivePerformance/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HivePerformance/sources/HeuristicLab.Services.Hive.DataAccess/3.3/TransactionManager.cs

    r9257 r9369  
    2121
    2222using System;
     23using System.IO;
    2324using System.Transactions;
    2425
     
    3738          n--; // probably deadlock situation, let it roll back and repeat the transaction n times
    3839          LogFactory.GetLogger(typeof(TransactionManager).Namespace).Log(string.Format("Exception occured, repeating transaction {0} more times. Details: {1}", n, e.ToString()));
     40          var log = new StreamWriter(@"C:\Temp\AbortedTransactions.log", true);
     41          log.WriteLine(DateTime.Now + ": Transaction aborted: " + n + " (" + e.Message + ")");
     42          log.WriteLine(e.StackTrace);
     43          log.Close();
    3944          if (n <= 0) throw;
    4045        }
  • branches/HivePerformance/sources/HeuristicLab.Services.Hive.Web/Hive-3.3/Web.config

    r9251 r9369  
    5454  </system.web>
    5555  <system.serviceModel>
    56     <diagnostics>
     56    <diagnostics performanceCounters="All">
    5757      <messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" maxMessagesToLog="3000"/>
    5858    </diagnostics>
  • branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3/HiveService.cs

    r9257 r9369  
    382382
    383383        if (slave == null) {
     384          var healGroup = dao.GetResources(x => x.Name == "HEAL").First();
     385          if (healGroup != null) {
     386            slaveInfo.ParentResourceId = healGroup.Id;
     387          }
    384388          dao.AddSlave(slaveInfo);
    385389        } else {
Note: See TracChangeset for help on using the changeset viewer.