Cloud Zone is brought to you in partnership with:

Pro Direct Delivery Manager on Windows Azure Platform of Microsoft & Senior System Analyst in Sonata Software North America Inc. Anindita is a DZone MVB and is not an employee of DZone and has posted 6 posts at DZone. You can read more from them at their website. View Full User Profile

Auto Scaling in Windows Azure & Config Management

09.05.2013
| 1801 views |
  • submit to reddit
Auto scaling rules from Azure Management portal instead of using the existing Enterprise Library block for Autoscaling(WASABi) app blocks was just announced. Auto scaling is now built-in for every hosted service in Azure (aka Cloud service, Virtual Machine, Website, Mobile service).

Auto scaling rules as specified executes based on the following rules:

  • Constraint Rule: Constraint rules consists of one or more actions to set minimum and maximum values for the number of instances of a target, a rank, and optionally a timetable that defines when the rule is in effect. If there is no timetable, the rule is always in effect.
  • Reactive Rule: This rule is based on varied metrics or constraints.
  • Remember, constraint rules always take precedence over reactive rules, to ensure that these reactive rules cannot continue to add new role instances above a maximum value or remove role instances below a minimum level.

Now, let's check on the latest on auto scaling improvements integrated from Azure Management Portal. First , let's create a new cloud service and deploy the ASP.NET web role package.

cloud

  • Specify the settings for the role, add custom diagnostic plans from settings (support from Azure SDK 2.0) configured with your storage account.

diagnostics

autoscaleDiag

  • Let's publish the cloud service and start monitoring the configuration dashboard.

Publish

  • Let's open the scale tab from the Cloud service details pane. Check the scaling settings by schedule , setting by metric (none, CPU, queue length).

autoscale

  • Let's set up the schedule time span for adding / removing role instance settings.

schedule

  • Specify the setting rules for autoscaling metrics; in this demo , I have set up schedule rules for daytime of our cloud service.

scalesetting

  • You can configure the notification alerts from Azure Management Portal itself using the "Management Service" tab.

Managementservice

  • To create a notification alert for autoscale, click the Add Rule icon and specify the rule settings.

alert

rulesetting

  • After creating the rule , check the dashboard of rule alert to monitor the activated notifications.

ruledashboard

  • From the latest add-ons of auto scaling improvements in hosted services, an updated preview of web endpoints is also available. Click on the Web endpoint preview section of your cloud service. For this demo, I have configured two web endpoints for monitoring the scale metric and logging the throttling information (minimal) in the selected storage. Similarly, an option of Linked Resource (SQL database, Storage Account) is also available now from the Azure Management portal itself.

webendpoint

Published at DZone with permission of Anindita Basak, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)