Skip to content

Commit c8728ff

Browse files
ninpan-msJoshTheTechWriter
authored andcommitted
Add how to setup auto scale settings for blue green deployments
1 parent aa6eba4 commit c8728ff

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

articles/spring-apps/basic-standard/how-to-setup-autoscale.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,21 @@ You can also set Autoscale modes using the Azure CLI. The following commands cre
7777

7878
For information on the available metrics, see the [User metrics options](./concept-metrics.md#user-metrics-options) section of [Metrics for Azure Spring Apps](./concept-metrics.md).
7979

80+
## Set up Autoscale settings for Blue-green deployments
81+
82+
If you have blue and green deployments of one application, follow these steps to setup autoscale settings scaling based on metrics:
83+
84+
1. Create separate autoscale rules for both deployments
85+
Set up one rule for the blue deployment and another for the green deployment.
86+
87+
1. Set **Deployment** dimension to one deployment only
88+
In each rule, after selecting **App** dimension, add the **Deployment** dimension and set the value to either the blue or green deployment name, not "All values".
89+
90+
1. Set **Instance** dimension to "All values"
91+
This ensures the rule applies to all instances within the selected deployment.
92+
93+
This setup allows each deployment scale based on its own metrics, avoiding conflicts or unexpected behavior during rollouts.
94+
8095
## Upgrade to the Standard plan
8196

8297
If you're on the Basic plan and constrained by one or more of these limits, you can upgrade to the Standard plan. To upgrade, go to the **Pricing** plan menu by first selecting the **Standard tier** column and then selecting the **Upgrade** button.

0 commit comments

Comments
 (0)