You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -16,7 +16,7 @@ The Azure Container Apps application lifecycle revolves around [revisions](revis
16
16
17
17
When you deploy a container app, the first revision is automatically created. [More revisions are created](revisions.md) as [containers](containers.md) change, or any adjustments are made to the `template` section of the configuration.
18
18
19
-
A container app flows through three phases: deployment, update, and deactivation.
19
+
A container app flows through four phases: deployment, update, deactivation, and shutdown.
20
20
21
21
## Deployment
22
22
@@ -26,10 +26,19 @@ As a container app is deployed, the first revision is automatically created.
26
26
27
27
## Update
28
28
29
-
As a container app is updated with a [revision scope-change](revisions.md#revision-scope-changes), a new revision is created. You can choose whether to [automatically deactivate old revisions, or allow them to remain available](revisions.md).
29
+
As a container app is updated with a [revision scope-change](revisions.md#revision-scope-changes), a new revision is created. You can [choose](revisions.md#revision-modes) whether to automatically deactivate old revisions (single revision mode), or allow them to remain available (multiple revision mode).
In single revision mode, Container Apps automatically ensures your app does not experience downtime when creating new a revision. The existing active revision is not deactivated until the new revision is ready. If ingress is enabled, the existing revision will continue to receive 100% of the traffic until the new revision is ready.
36
+
37
+
> [!NOTE]
38
+
> A new revision is considered ready when one of its replicas starts and becomes ready. A replica is ready when all of its containers start and pass their [startup and readiness probes](./health-probes.md).
39
+
40
+
In multiple revision mode, you control when revisions are activated or deactivated and which revisions receive ingress traffic. If a [traffic splitting rule](./revisions-manage.md#traffic-splitting) is configured with `latestRevision` set to `true`, traffic does not switch to the latest revision until it is ready.
41
+
33
42
## Deactivate
34
43
35
44
Once a revision is no longer needed, you can deactivate a revision with the option to reactivate later. During deactivation, containers in the revision are [shut down](#shutdown).
Copy file name to clipboardExpand all lines: articles/container-apps/health-probes.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: craigshoemaker
6
6
ms.service: container-apps
7
7
ms.custom: event-tier1-build-2022, ignite-2022
8
8
ms.topic: conceptual
9
-
ms.date: 03/30/2022
9
+
ms.date: 10/28/2022
10
10
ms.author: cshoe
11
11
---
12
12
@@ -158,7 +158,15 @@ The optional `failureThreshold` setting defines the number of attempts Container
158
158
159
159
## Default configuration
160
160
161
-
Container Apps offers default probe settings if no probes are defined. If your app takes an extended amount of time to start, which is very common in Java, you often need to customize the probes so your container won't crash.
161
+
If ingress is enabled, the following default probes are automatically added to the main app container if none is defined for each type.
| Liveness | Protocol: TCP<br>Port: ingress target port |
168
+
169
+
If your app takes an extended amount of time to start, which is very common in Java, you often need to customize the probes so your container won't crash.
162
170
163
171
The following example demonstrates how to configure the liveness and readiness probes in order to extend the startup times.
Copy file name to clipboardExpand all lines: articles/container-apps/revisions-manage.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -297,6 +297,8 @@ az containerapp revision set-mode `
297
297
298
298
Applied by assigning percentage values, you can decide how to balance traffic among different revisions. Traffic splitting rules are assigned by setting weights to different revisions.
299
299
300
+
To create a traffic rule that always routes traffic to the latest revision, set its `latestRevision` property to `true` and don't set `revisionName`.
301
+
300
302
The following example shows how to split traffic between three revisions.
Copy file name to clipboardExpand all lines: articles/container-apps/revisions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ The revision mode controls whether only a single revision or multiple revisions
105
105
106
106
### Single revision mode
107
107
108
-
By default, a container app is in *single revision mode*. In this mode, only one revision is active at a time. When a new revision is created, the latest revision replaces the active revision.
108
+
By default, a container app is in *single revision mode*. In this mode, when a new revision is created, the latest revision replaces the active revision. For more information, see [Zero downtime deployment](./application-lifecycle-management.md#zero-downtime-deployment).
0 commit comments