Last change
on this file since 11001 was
9508,
checked in by fschoepp, 11 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:
1.1 KB
|
Line | |
---|
1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <rules xmlns="http://schemas.microsoft.com/practices/2011/entlib/autoscaling/rules" enabled="true">
|
---|
3 |
|
---|
4 | <constraintRules>
|
---|
5 | <rule name="Default" enabled="true" rank="1">
|
---|
6 | <actions>
|
---|
7 | <range target="SlaveWorker" min="1" max="8" />
|
---|
8 | </actions>
|
---|
9 | </rule>
|
---|
10 | </constraintRules>
|
---|
11 |
|
---|
12 | <reactiveRules>
|
---|
13 |
|
---|
14 | <rule name="LoadIncrease" enabled="true">
|
---|
15 | <actions>
|
---|
16 | <scale target="SlaveWorker" by="1" />
|
---|
17 | </actions>
|
---|
18 | <when>
|
---|
19 | <greaterOrEqual operand="HiveUsage" than="65" />
|
---|
20 | </when>
|
---|
21 | </rule>
|
---|
22 |
|
---|
23 | <rule name="LoadDecrease" enabled="true">
|
---|
24 | <actions>
|
---|
25 | <scale target="SlaveWorker" by="-1" />
|
---|
26 | </actions>
|
---|
27 | <when>
|
---|
28 | <less operand="HiveUsage" than="45" />
|
---|
29 | </when>
|
---|
30 | </rule>
|
---|
31 | </reactiveRules>
|
---|
32 |
|
---|
33 | <operands>
|
---|
34 | <performanceCounter alias="HiveUsage" performanceCounterName="\Hive\% Global Usage" source="Scaler" timespan="00:05:00" aggregate="Average"/>
|
---|
35 | <queueLength alias="QueueLengthAvg5min" aggregate="Average" queue="jobqueue" timespan="00:05:00" />
|
---|
36 | </operands>
|
---|
37 | </rules> |
---|
Note: See
TracBrowser
for help on using the repository browser.