Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OaaS/HeuristicLab.Services.Hive.Scaler/app.config @ 13834

Last change on this file since 13834 was 9508, checked in by fschoepp, 12 years ago

#1888:
HL:

  • Web projects requires different users to interact with hive. The singleton HiveServiceLocator.Instance doesn't allow different users at the same time, resulting in serialization during access of HiveClient methods.

The following changes have been introduced in favor of a parallel use of the HL libs:

  • HiveClient, TaskDownloader and ConcurrentTaskDownloader may now use a different IHiveServiceLocator than HiveServiceLocator.Instance (all methods have appropriate overloads now).
  • The default instance is still HiveServiceLocator.Instance.

Automated Scaling of Instances:

  • Added Scaler project to solution which represents a WorkerRole that scales the slave instances based on the global cpu utilization of all slaves.
  • Scaler is based on WASABi, rules can be adjusted in rulesstore.xml. Basic rule is: if < 45% global cpu utilization => remove an instance; if > 65% cpu => add an instance. Minimum boundary is 1 and maximum boundary is 8 slave instances.
  • Adjusted Slave project to automatically register itself to a SlaveGroup during WebRole startup (can be adjusted in service configuration).

Web-Frontend:

  • Added basic error messages to the dialogs when an ajax call fails.
  • Removed Styling.js from scripts.
File size: 6.4 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<configuration>
3  <configSections>
4    <section name="autoscalingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.Configuration.AutoscalingSettings, Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling, Version=5.0.1118.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />
5    <section name="typeRegistrationProvidersConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.TypeRegistrationProvidersConfigurationSection, Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
6  </configSections>
7  <autoscalingConfiguration dataPointsStoreAccount="DefaultEndpointsProtocol=https;AccountName=ADJUST_ME;AccountKey=ADJUST_ME"
8    dataPointsTableName="AutoscalerDatapoints" ruleEvaluationRate="00:00:10"
9    loggerName="System Diagnostics Logger" rulesStoreName="Local File Rules Store"
10    serviceInformationStoreName="Local File Service Information Store">
11    <loggers>
12      <add name="System Diagnostics Logger" type="Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.Logging.SystemDiagnosticsLogger, Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling, Version=5.0.1118.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
13    </loggers>
14    <rulesStores>
15      <add name="Local File Rules Store" type="Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.Rules.Configuration.LocalXmlFileRulesStore, Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling, Version=5.0.1118.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
16        filename="rulesstore.xml" certificateThumbprint="" />
17    </rulesStores>
18    <serviceInformationStores>
19      <add name="Local File Service Information Store" type="Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.ServiceModel.Configuration.LocalXmlFileServiceInformationStore, Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling, Version=5.0.1118.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
20        filename="serviceinformationstore.xml" certificateThumbprint="" />
21    </serviceInformationStores>
22    <advancedOptions>
23      <serviceManagementRequestTracker trackServiceManagementRequests="false"
24        storageAccount="StorageConnectionString" />
25      <executionLease useBlobExecutionLease="false" blobExecutionLeaseStorageAccount="StorageConnectionString" />
26    </advancedOptions>
27  </autoscalingConfiguration>
28  <typeRegistrationProvidersConfiguration>
29    <clear />
30    <add name="Caching" sectionName="cachingConfiguration" />
31    <add name="Cryptography" sectionName="securityCryptographyConfiguration" />
32    <add name="Exception Handling" sectionName="exceptionHandling" />
33    <add name="Instrumentation" sectionName="instrumentationConfiguration" />
34    <add name="Logging" sectionName="loggingConfiguration" />
35    <add name="Policy Injection" sectionName="policyInjection" />
36    <add name="Security" sectionName="securityConfiguration" />
37    <add name="Data Access" providerType="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSyntheticConfigSettings, Microsoft.Practices.EnterpriseLibrary.Data" />
38    <add name="Validation" providerType="Microsoft.Practices.EnterpriseLibrary.Validation.Configuration.ValidationTypeRegistrationProvider, Microsoft.Practices.EnterpriseLibrary.Validation" />
39    <add sectionName="autoscalingConfiguration" name="autoscalingConfiguration" />
40  </typeRegistrationProvidersConfiguration>
41  <runtime>
42    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
43      <dependentAssembly>
44        <assemblyIdentity name="Microsoft.WindowsAzure.StorageClient"
45                          publicKeyToken="31bf3856ad364e35"
46                          culture="neutral" />
47        <bindingRedirect oldVersion="1.1.0.0"
48                         newVersion="1.7.0.0"/>
49      </dependentAssembly>
50    </assemblyBinding>
51  </runtime>
52  <!--
53  <system.diagnostics>
54    <sources>
55      <source name="Autoscaling General" switchName="SourceSwitch" switchType="System.Diagnostics.SourceSwitch" />
56      <source name="Autoscaling Updates" switchName="SourceSwitch" switchType="System.Diagnostics.SourceSwitch" />
57    </sources>
58    <switches>
59      <add name="SourceSwitch" value="Verbose, Information, Warning, Error, Critical" />
60    </switches>
61  </system.diagnostics>
62   -->
63  <system.diagnostics>
64    <trace autoflush="true">
65      <listeners>
66        <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
67        name="AzureDiagnostics">
68          <filter type="" />
69        </add>
70        <add type="HeuristicLab.Services.Optimization.ControllerService.Logging.TableStorageTraceListener, HeuristicLab.Services.Optimization.ControllerService" name="TableStoreTracer" />
71        <remove name="Default" />
72      </listeners>
73    </trace>
74    <sources>
75      <source name="Autoscaling General" switchName="SourceSwitch" switchType="System.Diagnostics.SourceSwitch" >
76        <listeners>
77          <add name="console" />
78          <add name="file" />
79          <add name="table" />
80          <remove name="Default"  />
81        </listeners>
82      </source>
83      <source name="Autoscaling Updates" switchName="SourceSwitch" switchType="System.Diagnostics.SourceSwitch" >
84        <listeners>
85          <add name="console" />
86          <add name="file" />
87          <add name="table" />
88          <remove name="Default" />
89        </listeners>
90      </source>
91    </sources>
92    <sharedListeners>
93      <add name="console" type="System.Diagnostics.ConsoleTraceListener">
94        <filter type="System.Diagnostics.EventTypeFilter" initializeData="Verbose"/>
95      </add>
96      <add name="file" type="System.Diagnostics.TextWriterTraceListener" initializeData="%USERPROFILE%\Desktop\Autoscaler.log">
97        <filter type="System.Diagnostics.EventTypeFilter" initializeData="Verbose"/>
98      </add>
99      <add type="HeuristicLab.Services.Optimization.ControllerService.Logging.TableStorageTraceListener, HeuristicLab.Services.Optimization.ControllerService" name="table" />
100    </sharedListeners>
101    <switches>
102      <add name="SourceSwitch" value="Verbose, Information, Warning, Error, Critical" />
103    </switches>
104  </system.diagnostics>
105</configuration>
Note: See TracBrowser for help on using the repository browser.