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
DEIS_DEPLOY_BATCHES | the number of pods to bring up and take down sequentially during a scale (default: number of available nodes)
64
+
DEIS_DEPLOY_TIMEOUT | deploy timeout in seconds - there are 2 deploy methods, current (RC) and Deployments (see below) and this setting affects those a bit differently (default: 120)
64
65
DEIS_KUBERNETES_DEPLOYMENTS | if enabled [Deployments][] is used to handle an application deploy instead of [ReplicationControllers][]
65
66
| any value is acceptable to turn on [Deployments][], to turn it off either remove or pass an empty string (default: off)
66
67
KUBERNETES_DEPLOYMENTS_REVISION_HISTORY_LIMIT | how many [revisions][[kubernetes-deployment-revision]] Kubernetes keeps around of a given Deployment (default: all revisions)
67
68
69
+
### Deploy Timeout
70
+
71
+
Deploy timeout in seconds - There are 2 deploy methods, current (RC) and Deployments (see below) and this setting affects those a bit differently.
72
+
73
+
#### RC deploy
74
+
75
+
This deploy timeout defines how long to wait for each batch to complete in `DEIS_DEPLOY_BATCHES`
76
+
77
+
#### Deployments
78
+
79
+
Deployments behave a little bit differently from the RC based deployment strategy.
80
+
81
+
Kubernetes takes care of the entire deploy, doing rolling updates in the background. As a result, there is only an overall deployment timeout instead of a configurable per-batch timeout.
82
+
83
+
The base timeout is multiplied with `DEIS_DEPLOY_BATCHES` to create an overall timeout. This would be 240 (timeout) * 4 (batches) = 960 second overall timeout.
84
+
85
+
#### Additions to the base timeout
86
+
87
+
The base timeout is extended as well with healthchecks using `initialDelaySeconds` on `liveness` and `readiness` where the bigger of those two is applied.
88
+
Additionally the timeout system accounts for slow image pulls by adding an additional 10 minutes when it has seen an image pull take over 1 minute. This allows the timeout values to be reasonable without having to account for image pull slowness in the base deploy timeout.
89
+
90
+
### Deployments
91
+
68
92
When `DEIS_KUBERNETES_DEPLOYMENTS=1` is set on an application then Deis Workflow will use [Deployments][] internally instead of [ReplicationControllers][].
69
93
70
94
The advantage of that is that rolling-updates will happen server-side in Kubernetes instead of in Deis Workflow Controller,
Copy file name to clipboardExpand all lines: src/managing-workflow/tuning-component-settings.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,11 +39,19 @@ RESERVED_NAMES | a comma-separated list of name
39
39
SLUGRUNNER_IMAGE_NAME | the image used to run buildpack application slugs (default: "quay.io/deisci/slugrunner:canary")
40
40
SLUG_BUILDER_IMAGE_PULL_POLICY | the kubernetes [image pull policy][pull-policy] for slugbuilder (default: "Always")
41
41
DOCKER_BUILDER_IMAGE_PULL_POLICY | the kubernetes [image pull policy][pull-policy] for dockerbuilder (default: "Always")
42
+
KUBERNETES_POD_TERMINATION_GRACE_PERIOD_SECONDS | how many seconds kubernetes waits for a pod to finish work after a SIGTERM before sending SIGKILL (default: 30)
DEIS_DEPLOY_BATCHES | the number of pods to bring up and take down sequentially during a scale (default: number of available nodes)
49
+
DEIS_DEPLOY_TIMEOUT | deploy timeout in seconds - there are 2 deploy methods, current (RC) and Deployments (see below) and this setting affects those a bit differently (default: 120)
43
50
DEIS_KUBERNETES_DEPLOYMENTS | if enabled [Deployments][] is used to handle an application deploy platform wide instead of [ReplicationControllers][]
44
51
| any value is acceptable to turn on [Deployments][], to turn it off either remove or pass an empty string (default: off)
45
52
KUBERNETES_DEPLOYMENTS_REVISION_HISTORY_LIMIT | how many [revisions][[kubernetes-deployment-revision]] Kubernetes keeps around of a given Deployment (default: all revisions)
46
-
KUBERNETES_POD_TERMINATION_GRACE_PERIOD_SECONDS | how many seconds kubernetes waits for a pod to finish work after a SIGTERM before sending SIGKILL (default: 30)
53
+
54
+
See the [Deploying Apps][] guide for more detailed information on those.
47
55
48
56
## Customizing the Database
49
57
@@ -109,6 +117,7 @@ DOCTOR_API_URL | The doctor API URL (default: "<https://doctor-staging.deis.c
109
117
API_VERSION | The version number Workflow Manager sends to the versions API (default: "v2")
0 commit comments