Auto scaling in Windows Azure & configuring Management Services from Management Portal
September 2, 2013 Leave a comment
Recently announced the availability of auto scaling rules from Azure Management portal instead of using the existing Enterprise Library block for Autoscaling(WASABi) app blocks. Auto scaling is now inbuilt for every hosted services (aka Cloud service, Virtual Machine, Website, Mobile service) .
Auto scaling rule as specifies executes based on following rules:
- Constraint Rule : Constraint rules consist 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 : The rule based on varied metrics or constraints.
- Importantly, 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.
Lets check about the latest improvement on auto scaling improvements integrated from Azure Management Portal.
First , lets create a new cloud service & deploy asp.net webrole package.
- Specify the settings for the role, add custom diagnostics plan from settings (support from Azure SDK 2.0) configured with your storage account.
- Lets publish the cloud service & start monitoring the configuration dashboard.
- Lets open the scale tab from Cloud service details pane. Check the scaling settings by schedule , setting by metric (none, cpu, queue length).
- Lets set up the schedule time span for adding / removing role instance setting.
- Specify the setting rules for autoscaling metrics , in this demo , I have set up schedule rules for daytime of our cloud service.
- You can configure the notification alerts from Azure Management Portal itself using Management Service tab.
- To create a notification alert for autoscale, Click on Add Rule icon & specify the rule settings.
- After creating the rule , check the dashboard of rule alert to monitor the activated notifications.
- From latest add- on s of Auto scaling improvements in hosted services, an updated preview of web endpoints is also available. Click on Web endpoint preview section of your cloud service. For this demo, I have configured two web endpoints for monitoring the scale metric & log 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.