Skip to content

Commit af7cf12

Browse files
committed
feat(healthcheck): Add docs for applying healthchecks per proctype
1 parent 5c56c7e commit af7cf12

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

src/applications/managing-app-configuration.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,14 @@ zero is considered a pass, while a non-zero status code is considered a fail.
8080
healthy if the check can establish a connection. `tcpSocket` probes accept a port number to perform
8181
the socket connection on the Container.
8282

83-
Health checks can be configured on a per-application basis using `deis healthchecks:set`. To
83+
Health checks can be configured on a per-proctype basis for each application using `deis healthchecks:set`. If no type is mentioned then the health checks are applied to default proc types, web or cmd, whichever is present. To
8484
configure a `httpGet` liveness probe:
8585

8686
```
87-
$ deis healthchecks:set liveness httpGet 80
87+
$ deis healthchecks:set liveness httpGet 80 --type cmd
8888
=== peachy-waxworks Healthchecks
89+
90+
cmd:
8991
Liveness
9092
--------
9193
Initial Delay (seconds): 50
@@ -110,6 +112,8 @@ $ deis healthchecks:set liveness httpGet 80 \
110112
--path /welcome/index.html \
111113
--header "X-Client-Version=v1.0"
112114
=== peachy-waxworks Healthchecks
115+
116+
web/cmd:
113117
Liveness
114118
--------
115119
Initial Delay (seconds): 50
@@ -129,8 +133,10 @@ No readiness probe configured.
129133
To configure an `exec` readiness probe:
130134

131135
```
132-
$ deis healthchecks:set readiness exec -- /bin/echo -n hello
136+
$ deis healthchecks:set readiness exec -- /bin/echo -n hello --type cmd
133137
=== peachy-waxworks Healthchecks
138+
139+
cmd:
134140
Liveness
135141
--------
136142
No liveness probe configured.
@@ -150,8 +156,10 @@ TCP Socket Probe: N/A
150156
You can overwrite a probe by running `deis healthchecks:set` again:
151157

152158
```
153-
$ deis healthchecks:set readiness httpGet 80
159+
$ deis healthchecks:set readiness httpGet 80 --type cmd
154160
=== peachy-waxworks Healthchecks
161+
162+
cmd:
155163
Liveness
156164
--------
157165
No liveness probe configured.

0 commit comments

Comments
 (0)