Skip to content

Commit

Permalink
Add v3 docs for max_in_flight
Browse files Browse the repository at this point in the history
  • Loading branch information
Samze committed Jul 29, 2024
1 parent 7d14ced commit bfe9e38
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/v3/source/includes/api_resources/_deployments.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
}
},
"strategy": "canary",
"options" : {
"max_in_flight": 3,
},
"droplet": {
"guid": "44ccfa61-dbcf-4a0d-82fe-f668e9d2a962"
},
Expand Down Expand Up @@ -80,6 +83,9 @@
"reason": "DEPLOYED"
},
"strategy": "rolling",
"options" : {
"max_in_flight": 1,
},
"droplet": {
"guid": "44ccfa61-dbcf-4a0d-82fe-f668e9d2a962"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ Name | Type | Description | Default
**droplet**<sup>[1]</sup> | _object_ | The droplet to deploy for the app; this will update the app's [current droplet](#get-current-droplet-association-for-an-app) to this droplet | The app's [current droplet](#get-current-droplet-association-for-an-app)
**revision**<sup>[1]</sup> | _object_ | The [revision](#revisions) whose droplet to deploy for the app; this will update the app's [current droplet](#get-current-droplet-association-for-an-app) to this droplet |
**strategy** | _string_ | The strategy to use for the deployment | `rolling`
**options.max_in_flight** | _integer_ | The maximum number of new instances to deploy simultaneously | 1
**metadata.labels** | [_label object_](#labels) | Labels applied to the deployment
**metadata.annotations** | [_annotation object_](#annotations) | Annotations applied to the deployment

Expand Down
3 changes: 2 additions & 1 deletion docs/v3/source/includes/resources/deployments/_header.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Deployments are different than the traditional method of pushing app updates whi
Deployment strategies supported:

* [Rolling deployments](https://docs.cloudfoundry.org/devguide/deploy-apps/rolling-deploy.html) allows for
applications to be deployed without incurring downtime by gradually rolling out instances.
applications to be deployed without incurring downtime by gradually rolling out instances. Max-in-flight can be configured
to specify how many instances are rolled out simultaneously.

* Canary deployments deploy a single instance and pause for user evaluation. If the canary instance is deemed successful, the deployment can be resumed via the [continue action](#continue-a-deployment). The deployment then continues like a rolling deployment. This feature is experimental and is subject to change.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Name | Type | Description
**status.details.last_successful_healthcheck** | _[timestamp](#timestamps)_ | Timestamp of the last successful healthcheck
**status.details.last_status_change** | _[timestamp](#timestamps)_ | Timestamp of last change to status.value or status.reason
**strategy** | _string_ | Strategy used for the deployment; supported strategies are `rolling` and `canary` (experimental)
**options.max_in_flight** | _integer_ | The maximum number of new instances to deploy simultaneously
**droplet.guid** | _string_ | The droplet guid that the deployment is transitioning the app to
**previous_droplet.guid** | _string_ | The app's [current droplet guid](#get-current-droplet-association-for-an-app) before the deployment was created
**new_processes** | _array_ | List of processes created as part of the deployment
Expand Down

0 comments on commit bfe9e38

Please sign in to comment.