Skip to content

Commit efb7db0

Browse files
Merge pull request #308757 from yutanglin16/patch-22
Update ARR Affinity explanation for automatic scaling
2 parents 235608e + 673ae4b commit efb7db0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

articles/app-service/manage-automatic-scaling.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,10 @@ The `AutomaticScalingInstanceCount` metric reports the number of virtual machine
178178

179179
### How does ARR Affinity affect automatic scaling?
180180

181-
Azure App Service uses Application Request Routing cookies known as an ARR Affinity. ARR Affinity cookies restrict scaling because they send requests only to servers associated with the cookie, rather than any available instance. For apps that store state, it's better to scale up (increase resources on a single instance). For stateless apps, scaling out (adding more instances) offers more flexibility and scalability. ARR Affinity cookies are enabled by default on App Service. Depending on your application needs, you might choose to disable ARR affinity cookies when using automatic scaling.
181+
> [!NOTE]
182+
> When enabling Automatic Scaling on the App Service Plan, all pre-existing apps in the plan will automatically have ARR Affinity disabled.
183+
184+
Azure App Service uses Application Request Routing cookies known as an ARR Affinity. ARR Affinity cookies restrict scaling because they send requests only to servers associated with the cookie, rather than any available instance. For apps that store state, it's better to scale up (increase resources on a single instance). For stateless apps, scaling out (adding more instances) offers more flexibility and scalability. ARR Affinity cookies are enabled by default on App Service. However, when using automatic scaling, you should disable ARR affinity cookies to ensure proper scaling.
182185

183186
To disable ARR Affinity cookies: select your App Service app, and under **Settings**, select **Configuration**. Next select the **General settings** tab. Under **Session affinity**, select **Off** and then select the **Save** button.
184187

0 commit comments

Comments
 (0)