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
Copy file name to clipboardExpand all lines: deploy-apps/rolling-deploy.html.md.erb
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Or for canary deployments:
31
31
Cloud Foundry provides two different strategies for deployments:
32
32
33
33
* A **Rolling** deployment brings up one or more web processes for the new app version, with the number set by `max-in-flight`, which defaults to 1. After those instances report as healthy and routable, it brings down the same number of instances of the old version. The deployment repeats this process to replace all web process instances, and then updates all old non-web processes.
34
-
* A **Canary** deployment brings up one or more web processes for the new app version, defaulting to one. It then pauses to let app operators or developers evaluate the health of a new version instances. App operators can then choose to either `cancel` or `continue` the deployment. When the deployment is continued, the canary deployment proceeds in the same way as a rolling deployment.
34
+
* A **Canary** deployment brings up one or more web processes for the new app version, defaulting to one. It then pauses to let app operators or developers evaluate the health of new version instances. App operators can then choose to either `cancel` or `continue` the deployment. When the deployment is continued, the canary deployment proceeds in the same way as a rolling deployment.
35
35
* To gradually increase instance counts and check app health in multiple steps, the latest cf CLI v8 supports an `--instance-steps` option that sets a series of increasing instance counts.
36
36
37
37
Each rolling or canary deployment increments the `revision` count for the new app deployment, as listed by the `cf revisions` command described in [App Revisions Overview](../revisions.html).
@@ -78,12 +78,12 @@ background, updating deployments as follows:
78
78
* If you run `cf app` on your app at this point, you see multiple `web` processes.
79
79
2. Sets the deployment to `PAUSED`.
80
80
81
-
1. After validating that the canary instance is running as expected, execute the command `cf continue-deployment APP-NAME`:
81
+
3. After validating that the canary instance is running as expected, execute the command `cf continue-deployment APP-NAME`:
82
82
* Changes the deployment reason to `DEPLOYING` and resumes following the same process as a rolling deployment.
83
83
84
-
2. After the command changes the status of the deployment, the `cc_deployment_updater` BOSH job runs in the
84
+
4. After the command changes the status of the deployment, the `cc_deployment_updater` BOSH job runs in the
85
85
background, updating deployments as follows:
86
-
1. Adds MaxInFlight number of instances (**by default it is 1**) of the new web process and removes MaxInFlight number of instance from the old web process. This step repeats until the new web process reaches the required number of instances.
86
+
1. Adds MaxInFlight number of instances (**by default it is 1**) of the new web process and removes MaxInFlight number of instances from the old web process. This step repeats until the new web process reaches the required number of instances.
87
87
<pclass="note important">
88
88
This happens only if all instances of the new web process are running.</p>
89
89
2. Removes the old web process. The new web process now fully replaces the old web process.
@@ -406,7 +406,7 @@ droplet GUID from the output.
406
406
-H "Content-type: application/json" \
407
407
-d '{
408
408
"package": {
409
-
"guid": PACKAGE-GUID"
409
+
"guid": "PACKAGE-GUID"
410
410
}
411
411
}'
412
412
```
@@ -464,7 +464,7 @@ To stop the deployment of an app that you pushed:
464
464
* **For CAPI V3, run:**
465
465
466
466
```
467
-
cf curl /v3/deployments/DEPLOYMENT-GUID/actions/cancel" -X POST
467
+
cf curl /v3/deployments/DEPLOYMENT-GUID/actions/cancel -X POST
468
468
```
469
469
470
470
Where `DEPLOYMENT-GUID` is the GUID of the deployment that you recorded after following the
@@ -496,7 +496,7 @@ To finish a canary deployment after the deployment has paused and the canary ins
496
496
* **For CAPI V3, run:**
497
497
498
498
```
499
-
cf curl /v3/deployments/DEPLOYMENT-GUID/actions/continue" -X POST
499
+
cf curl /v3/deployments/DEPLOYMENT-GUID/actions/continue -X POST
500
500
```
501
501
Where `DEPLOYMENT-GUID` is the GUID of the deployment that you recorded after following the
502
502
CAPI procedure in [Deploy an app](#deploy).
@@ -530,7 +530,7 @@ To restart your app without downtime, run the appropriate command as shown here.
530
530
Where:
531
531
<ul>
532
532
<li><code>APP-NAME</code> is the name of the app.</li>
533
-
<li><code>MAX_IN_FLIGHT</code> specifies the maximum number of new instances to restart simultaneous until the deployment is complete. Optional and defaults to 1.</li>
533
+
<li><code>MAX_IN_FLIGHT</code> specifies the maximum number of new instances to restart simultaneously until the deployment is complete. Optional and defaults to 1.</li>
534
534
<li><code>STRATEGY</code> is the strategy you would like to use for the deployment. Valid strategies are <code>rolling</code> and <code>canary</code>.</li>
535
535
</ul>
536
536
@@ -561,7 +561,7 @@ To restart your app without downtime, run the appropriate command as shown here.
561
561
Where:
562
562
<ul>
563
563
<li><code>DROPLET-GUID</code> and <code>APP-GUID</code> are the GUIDs that you recorded in earlier steps.</li>
564
-
<li><code>MAX_IN_FLIGH</code> is an integer that specifies the maximum number of new instances to start up simultaneous until the deployment is complete. Optional and defaults to 1.</li>
564
+
<li><code>MAX_IN_FLIGHT</code> is an integer that specifies the maximum number of new instances to start up simultaneously until the deployment is complete. Optional and defaults to 1.</li>
565
565
<li><code>STRATEGY</code> is the strategy you would like to use for the deployment. Valid strategies are <code>rolling</code> and <code>canary</code>.</li>
Copy file name to clipboardExpand all lines: deploy-apps/stacks.html.md.erb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ Operators can assign a lifecycle state to each stack. The state affects what ope
39
39
|--------------|------------------------------|
40
40
| `ACTIVE` | The stack is fully available. You can push new apps and restage existing apps. |
41
41
| `DEPRECATED` | The stack is still usable, but a warning is shown during `cf push` and `cf restage`. Plan to migrate your apps soon. |
42
-
| `RESTRICTED` | You cannot push new apps using this stack. Existing apps can still be restarted and scaled. |
42
+
| `RESTRICTED` | You cannot push new apps using this stack. Existing apps can still be restaged, restarted, and scaled. |
43
43
| `DISABLED` | You cannot stage or restage any app using this stack. Existing apps continue to run and can be restarted and scaled. |
44
44
45
45
When a stack has a state other than `ACTIVE`, operators typically provide a **reason** message with migration guidance. This reason is shown in `cf stacks`, `cf stack STACK_NAME`, and in any warning or error messages during `cf push` or `cf restage`.
0 commit comments