Skip to content

Commit 33b9335

Browse files
authored
Merge pull request #76638 from btardif/master
clarification on app allocation and cleaning up references to ASEv1
2 parents 3cc22d6 + 5906eec commit 33b9335

File tree

1 file changed

+29
-37
lines changed

1 file changed

+29
-37
lines changed

articles/app-service/manage-scale-per-app.md

Lines changed: 29 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: High density hosting using per-app scaling - Azure App Service | Microsoft Docs
3-
description: High density hosting on Azure App Service
2+
title: High-density hosting using per-app scaling - Azure App Service | Microsoft Docs
3+
description: High-density hosting on Azure App Service
44
author: btardif
55
manager: erikre
66
editor: ''
@@ -13,31 +13,31 @@ ms.workload: web
1313
ms.tgt_pltfrm: na
1414
ms.devlang: multiple
1515
ms.topic: article
16-
ms.date: 01/22/2018
16+
ms.date: 05/13/2019
1717
ms.author: byvinyal
1818
ms.custom: seodec18
1919

2020
---
21-
# High density hosting on Azure App Service using per-app scaling
21+
# High-density hosting on Azure App Service using per-app scaling
2222

2323
[!INCLUDE [updated-for-az](../../includes/updated-for-az.md)]
2424

25-
By default, you scale App Service apps by scaling the [App Service plan](overview-hosting-plans.md) they run on. When multiple apps are run in the same App Service plan, each scaled-out instance runs all the apps in the plan.
25+
When using App Service, you can scale your apps by scaling the [App Service plan](overview-hosting-plans.md) they run on. When multiple apps are run in the same App Service plan, each scaled-out instance runs all the apps in the plan.
2626

27-
You can enable *per-app scaling* at the
28-
App Service plan level. It scales an app independently from the
29-
App Service plan that hosts it. This way, an App Service plan
30-
can be scaled to 10 instances, but an app can be set to use only five.
27+
*Per-app scaling* can be enabled at the App Service plan level to allow for scaling an app independently from the
28+
App Service plan that hosts it. This way, an App Service plan can be scaled to 10 instances, but an app can be set to use only five.
3129

3230
> [!NOTE]
3331
> Per-app scaling is available only for **Standard**, **Premium**, **Premium V2** and **Isolated** pricing tiers.
3432
>
3533
34+
Apps are allocated to available App Service plan using a best effort approach for an even distribution across instances. While an even distribution is not guaranteed, the platform will make sure that two instances of the same app will not be hosted on the same App Service plan instance.
35+
36+
The platform does not rely on metrics to decide on worker allocation. Applications are rebalanced only when instances are added or removed from the App Service plan.
37+
3638
## Per app scaling using PowerShell
3739

38-
Create a plan with per-app scaling
39-
by passing in the ```-PerSiteScaling $true``` parameter to the
40-
```New-AzAppServicePlan``` cmdlet.
40+
Create a plan with per-app scaling by passing in the ```-PerSiteScaling $true``` parameter to the ```New-AzAppServicePlan``` cmdlet.
4141

4242
```powershell
4343
New-AzAppServicePlan -ResourceGroupName $ResourceGroup -Name $AppServicePlan `
@@ -64,10 +64,10 @@ of how many instances the underlying app service plan scales out to.
6464
```powershell
6565
# Get the app we want to configure to use "PerSiteScaling"
6666
$newapp = Get-AzWebApp -ResourceGroupName $ResourceGroup -Name $webapp
67-
67+
6868
# Modify the NumberOfWorkers setting to the desired value.
6969
$newapp.SiteConfig.NumberOfWorkers = 2
70-
70+
7171
# Post updated app back to azure
7272
Set-AzWebApp $newapp
7373
```
@@ -133,29 +133,21 @@ to use to 5 `"properties": { "numberOfWorkers": "5" }`.
133133
}
134134
```
135135

136-
## Recommended configuration for high density hosting
137-
Per app scaling is a feature that is enabled in both global Azure regions
138-
and [App Service Environments](environment/app-service-app-service-environment-intro.md). However, the recommended strategy is to
139-
use App Service Environments to take advantage of their advanced features and the larger
140-
pools of capacity.
141-
142-
Follow these steps to configure
143-
high density hosting for your apps:
144-
145-
1. Configure the App Service Environment and choose a worker pool that is dedicated to the high density hosting scenario.
146-
2. Create a single App Service plan, and scale it to use all the available
147-
capacity on the worker pool.
148-
3. Set the `PerSiteScaling` flag to true on the App Service plan.
149-
4. New apps are created and assigned to that App Service plan with the
150-
**numberOfWorkers** property set to **1**. Using this configuration yields the
151-
highest density possible on this worker pool.
152-
5. The number of workers can be configured independently per app to grant
153-
additional resources as needed. For example:
154-
- A high-use app can set **numberOfWorkers** to **3** to have more
155-
processing capacity for that app.
156-
- Low-use apps would set **numberOfWorkers** to **1**.
157-
158-
## Next Steps
136+
## Recommended configuration for high-density hosting
137+
138+
Per app scaling is a feature that is enabled in both global Azure regions and [App Service Environments](environment/app-service-app-service-environment-intro.md). However, the recommended strategy is to use App Service Environments to take advantage of their advanced features and the larger App Service plan capacity.
139+
140+
Follow these steps to configure high-density hosting for your apps:
141+
142+
1. Designate an App Service plan as the high-density plan and scale it out to the desired capacity.
143+
1. Set the `PerSiteScaling` flag to true on the App Service plan.
144+
1. New apps are created and assigned to that App Service plan with the **numberOfWorkers** property set to **1**.
145+
- Using this configuration yields the highest density possible.
146+
1. The number of workers can be configured independently per app to grant additional resources as needed. For example:
147+
- A high-use app can set **numberOfWorkers** to **3** to have more processing capacity for that app.
148+
- Low-use apps would set **numberOfWorkers** to **1**.
149+
150+
## Next steps
159151

160152
- [Azure App Service plans in-depth overview](overview-hosting-plans.md)
161153
- [Introduction to App Service Environment](environment/app-service-app-service-environment-intro.md)

0 commit comments

Comments
 (0)