Scale up your platform instance configuration

In this article, we'll walk you through upscaling your platform resources to meet your scale requirements.

Note

Any changes in configuration and plans may impact your azure consumption costs.

Steps to enable Auto-Scale for your instance

Pre-requisites

Auto scale-out is only available for MCT Standard SKU plan.

standard

Option 1 - Enabling auto scale-out during instance creation

On the azure portal MCT instance creation blade, there will be a checkbox which denotes whether to enable auto-scale out for the instance. Checking the auto scale-out checkbox is enough.

autoscaledep

Option 2 - Enable auto scale-out for existing instances

If you have an existing instance, you can enable auto scale-out as mentioned below

  1. Login to Azure portal

  2. In the Azure portal, navigate to Resource groups in the left navigation pane.

    Navigate Resource groups

  3. From the list of resource groups, click on the resource group belonging to your Microsoft Community Training instance

  4. From the list of resources, click on the function app resource that has name like <your portal name>-fa-<random string>.

  5. On the function apps page, navigate to Configuration on the left panel.

    functionappconfig

  6. Check if configuration by the name EnableAutoScalingAllowed exists. If not, click on “New application setting”.

    • If newly adding the configuration, set the Name as “EnableAutoScalingAllowed” and Value as “true”.
    • If already exists and the value is set to “false”, update it to “true”

    configchange

  7. Click on save and wait for the operation to complete (should take couple of minutes to complete)

  8. Once the operation from step 7 is complete, navigate to Functions on the left panel.

  9. There will be 6 functions which are part of the function app. One of them will be “EnableAutoScaling”.

  10. Towards the far right of the row containing the name EnableAutoScaling, click on the 3-dot icon that says, “click to open context menu”. When the context menu opens, click on “Enable”.

    enableautoscale

  11. Once the function enabled above in step 10 comes back to disabled state, auto scale-out will be enabled for your instance.

Note

  • Once the above-mentioned resource is provisioned, an auto scale-out profile will be added to the app service plan which will scale out the plan in the following condition: if the CPU utilization exceeds 80%, an additional instance will be spawned which can consume the request traffic.

  • A Maximum of 5 instances will be spawned, if the load is such that it requires more than 5 instances to balance, no additional instances will be created and as and when the load decreases, the instance count reduces.

Warning

Enabling auto scale-out will incur additional costs to your subscription. This includes a monthly cost for using the Azure Cache for Redis resource and additional App Service Plan consumption.

Steps to disable Auto-Scale for your instance

If you have auto scale enabled in your instance and you wish to disable, you can achieve it by following steps below:

  1. Login to Azure portal

  2. In the Azure portal, navigate to Resource groups in the left navigation pane.

    Navigate Resource groups

  3. From the list of resource groups, click on the resource group belonging to your Microsoft Community Training instance

  4. From the list of resources, click on the function app resource that has name like <your portal name>-fa-<random string>.

  5. Navigate to Functions on the left panel.

  6. There will be 6 functions which are part of the function app. One of them will be “DisableAutoScaling”.

  7. Towards the far right of the row containing the name DisableAutoScaling, click on the 3-dot icon that says, “click to open context menu”. When the context menu opens, click on “Enable”.

    disableautoscale

  8. Once the function enabled above in step 7 comes back to disabled state, auto scale-out will be disabled for your instance.

Manual steps to upscale your instance

Azure App Service

Get more CPU, memory, disk space, and extra features like dedicated virtual machines (VMs), custom domains and certificates, staging slots, autoscaling, and more. You scale up by changing the pricing tier of the App Service plan that your app belongs to. The scale settings take only seconds to apply and affect all apps in your App Service plan. They don't require you to change your code or redeploy your application.

Steps to upgrade your Azure App Service

  1. Login to your Azure portal, go to Resource Groups from the left-menu.

    Login Azure portal

  2. Click on the resource group belonging to your Microsoft Community Training instance.

  3. Click on the Managed application instance.

    Managed application

  4. Click on Managed resource group link.

    Resource group

  5. Select the resource for your App Service (has -asp- in its name).

    resource

  6. Click Scale up from the left-menu.

    Scale up

  7. Select new tier of your choice and click on Apply.

Azure SQL Database

Mitigate performance issues by dynamically add more resources to your database with minimal downtime; however, there will be a switch over period where connectivity is lost to the database for a short amount of time, which can be mitigated using retry logic. Learn more here.

Steps to upgrade your Azure SQL Database plan

  1. Login to your Azure portal, go to Resource Groups from the left-menu.

    Azure portal

  2. Click on the resource group belonging to your Microsoft Community Training instance.

  3. Click on the Managed application instance.

    Managed application

  4. Click on Managed resource group link.

    Managed resource group

  5. Select the resource for your App database (has -db- in its name)

    your App database

  6. Click Configure from the left-menu.

    Configure

  7. Use the DTUs slider to change tier and click on Apply.