Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/22/13 15:29:15 (10 years ago)
Author:
fschoepp
Message:

#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:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OaaS/HeuristicLab.Clients.Hive.Slave.AzureClient/3.3/WorkerRole.cs

    r9375 r9508  
    3434
    3535  public class WorkerRole : RoleEntryPoint {
    36     private Core core;
     36    private HeuristicLab.Clients.Hive.SlaveCore.Core core;
    3737    private Thread coreThread;
    3838
     
    4343      try {
    4444        LogError(new Exception("Starting Run()..."));
    45         core = new Core(false);
     45        core = new HeuristicLab.Clients.Hive.SlaveCore.Core(false);
    4646
    4747        string hiveServerAddress = RoleEnvironment.GetConfigurationSettingValue(HiveServerAddressSetting);
     
    5555        coreThread = new Thread(core.Start);
    5656        coreThread.Start();
     57
     58        WcfService.Instance.Connected += new EventHandler((sender, e) => {
     59          HiveHelper.RegisterSlaveToGroup(RoleEnvironment.GetConfigurationSettingValue("HiveGroup"));
     60        });
    5761
    5862        LogError(new Exception("Run(): Core started successfullly"));
Note: See TracChangeset for help on using the changeset viewer.