How Azure AutoScaling driven up by Azure Monitor Metrics
Azure Monitor Metrics is a feature of Azure Monitor that
collects numeric data from monitored resources into a time series database. Metrics are
numerical values that are collected at regular intervals and describe some
aspect of a system at a particular time.
Azure Monitor collects metrics from the following sources.
- Azure resources
- Applications
- Virtual machine agents
- Custom metrics
Data
that Azure Monitor Metrics collects is stored in a time-series database that's
optimized for analyzing time-stamped data. Each set of metric values is a time
series with the following properties:
- The time that the value was collected.
- The resource that the value is associated with.
- A namespace that acts like a category for the metric.
- A metric name.
- The value itself.
Autoscale allows you to have the right amount of resources running to handle the load on your application. It allows you to add resources to handle increases in load and also save money by removing resources that are sitting idle. You specify a minimum and maximum number of instances to run and add or remove VMs automatically based on a set of rules. Having a minimum makes sure your application is always running even under no load. Having a maximum limits your total possible hourly cost. You automatically scale between these two extremes using rules you create.
You can implement autoscaling based on schedule(TIME) rules
which are based on UTC and You can also create
complex overlapping rules as needed for your situation. Metric-based rules
measure application load and add or remove VMs based on that load.
Schedule-based rules allow you to scale when you see time patterns in your load
and want to scale before a possible load increase or decrease occurs.
Use the following best practices as you use autoscale.
- Ensure the maximum and minimum values are different and have an adequate margin between them.
- Manual scaling is reset by autoscale min and max.
- Always use a scale-out and scale-in rule combination that performs an increase and decrease.
- Choose the appropriate statistic for your diagnostics metric.
- Choose the thresholds carefully for all metric types.
Ref :-
Comments
Post a Comment