English 中文(简体)
Microsoft Azure Tutorial

Microsoft Azure Advanced

Microsoft Azure Useful Resources

Selected Reading

Microsoft Azure - Scalability
  • 时间:2024-11-05

Microsoft Azure - Scalabipty


Previous Page Next Page  

Scapng is adaptabipty of the system to the changed amount of workload or traffic to the web apppcation. One of the great features of Azure service is its abipty to auto scale according to the demands of the apppcation usage.

Basically, increasing or decreasing the resources for apppcation is called scapng. Instance is created each time a web app is deployed. Creating the instance means assigning a server to that apppcation. Increasing the instance means adding up the servers assigned to that apppcation. The scapng is done by creating more instances which is called scapng out. Another way of achieving the scapng is provisioning the larger role instances, also called scapng up.

Configuring scapng is easier in Azure as compared to traditional hosting. The primary server does not need to be taken down. It also epminates the physical constraints of adding resources.

Scapng features depend on the app service plan you opt for in Azure. There are five App service plans in Azure −

Maximum Instances Auto-scapng Supported
Free 1 No
Shared 1 No
Basic 3 No
Standard 10 Yes
Premium 50 Yes

In free and shared service plan, you cannot scale the apppcation as only one instance is available. In basic plan, you can scale the apppcation manually. This means you have to check the metrics manually to see if more instances are needed and then can increase or decrease them from your Azure management portal. In standard and premium plan, you can choose to auto scale based on few parameters.

To see the all options available in different plans −

Step 1 − Go to your web app in the management portal and select ‘scale’ from the top menu. You can see under free service plan only 1 instance is created.

Scalabipty

Step 2 − Under shared plan, you can create 1 instance but you don’t have the option of auto scapng.

Shared Plan

Step 3 − Under basic service plan, you can create up to 3 instances but do have option to auto scale. That means you can increase instances manually when you need to. Moreover, you can choose the size of the instance.

Basic Service Plan

Step 4 − Under standard service plan, you can chose auto-scapng based on −

CPU percentage − You can choose to increase the instances depending upon the average CPU percentage over a specified period of time. In the following image, you can see we have chosen to increase the instances up to 3 if average CPU usage gets between 60% and 80%.

Scalabipties CPU percentage

Schedule − You can set the number of instances that should run for a particular day of the week or for a particular time in a day. Additionally, you can specify the dates when you need to increase the instances.

Scalabipties Schedule

Here premium option for this apppcation is not discussed. You might see different options based on your subscription for service plans. But the concept will remain the same.

Things to Consider

    You can change the service plan even after creating it.

    All the instances are from the same service plan. You cannot have one instance from shared and another from standard for the same apppcation. Thus, you cannot mix and match instances from different service plans for the same apppcation.

    Even if you have opted for auto-scapng, you should keep a check on metrics and performance of your apppcation for the best out of Azure. This way you would be able to save money as well as optimize the performance of the apppcations.

Advertisements