Add healthcheck to api-ref
Change-Id: I652e239578fd883898920bdaf9e98fc90041ebc9 Partial-Implements: blueprint support-healthycheck
This commit is contained in:
parent
cd7e76be1e
commit
0fc74ffd02
@ -59,6 +59,7 @@ Request
|
||||
- hints: hints
|
||||
- mounts: mounts
|
||||
- privileged: privileged-request
|
||||
- healthcheck: healthcheck-request
|
||||
|
||||
Request Example
|
||||
----------------
|
||||
@ -97,6 +98,7 @@ Response
|
||||
- auto_remove: auto_remove
|
||||
- auto_heal: auto_heal
|
||||
- privileged: privileged
|
||||
- healthcheck: healthcheck
|
||||
|
||||
|
||||
Response Example
|
||||
@ -169,6 +171,7 @@ Response
|
||||
- status_reason: status_reason
|
||||
- ports: ports
|
||||
- privileged: privileged
|
||||
- healthcheck: healthcheck
|
||||
|
||||
Response Example
|
||||
----------------
|
||||
@ -232,6 +235,7 @@ Response
|
||||
- status_reason: status_reason
|
||||
- ports: ports
|
||||
- privileged: privileged
|
||||
- healthcheck: healthcheck
|
||||
|
||||
Response Example
|
||||
----------------
|
||||
@ -433,6 +437,7 @@ Return new container with updated attributes.
|
||||
- status_reason: status_reason
|
||||
- ports: ports
|
||||
- privileged: privileged
|
||||
- healthcheck: healthcheck
|
||||
|
||||
Response Example
|
||||
----------------
|
||||
|
@ -497,6 +497,32 @@ forced_down:
|
||||
in: body
|
||||
required: true
|
||||
type: boolean
|
||||
healthcheck:
|
||||
description: |
|
||||
A dict of health check for the container. Specify a test command to
|
||||
perform to check that the container is healthy. Four parameters are
|
||||
supported:
|
||||
|
||||
* cmd: Command to run to check health.
|
||||
* interval: Time between running the check in seconds.
|
||||
* retries: Consecutive failures needed to report unhealthy.
|
||||
* timeout: Maximum time to allow one check to run in seconds.
|
||||
in: body
|
||||
required: true
|
||||
type: object
|
||||
healthcheck-request:
|
||||
description: |
|
||||
A dict of health check for the container. Specify a test command to
|
||||
perform to check that the container is healthy. Four parameters are
|
||||
supported:
|
||||
|
||||
* cmd: Command to run to check health.
|
||||
* interval: Time between running the check in seconds.
|
||||
* retries: Consecutive failures needed to report unhealthy.
|
||||
* timeout: Maximum time to allow one check to run in seconds.
|
||||
in: body
|
||||
required: false
|
||||
type: object
|
||||
hints:
|
||||
description: |
|
||||
The dictionary of data to send to the scheduler.
|
||||
|
@ -43,5 +43,11 @@
|
||||
"destination": "/data"
|
||||
}
|
||||
],
|
||||
"privileged": false
|
||||
"privileged": false,
|
||||
"healthcheck": {
|
||||
"cmd": "stat /etc/passwd || exit 1",
|
||||
"interval": 3,
|
||||
"retries": 2,
|
||||
"timeout": 5
|
||||
}
|
||||
}
|
||||
|
@ -42,5 +42,11 @@
|
||||
"privileged": false,
|
||||
"disk": 0,
|
||||
"user_id": "0a9cdb65757b4216935e27f333d1c48b",
|
||||
"project_id": "77a89a275765486d86144caad70825e4"
|
||||
"project_id": "77a89a275765486d86144caad70825e4",
|
||||
"healthcheck": {
|
||||
"test": "stat /etc/passwd || exit 1",
|
||||
"interval": 3,
|
||||
"retries": 2,
|
||||
"timeout": 5
|
||||
}
|
||||
}
|
||||
|
@ -56,7 +56,13 @@
|
||||
"ports": [],
|
||||
"command": "/bin/sh -c 'echo hello'",
|
||||
"cpu": 2.0,
|
||||
"interactive": false
|
||||
"interactive": false,
|
||||
"healthcheck": {
|
||||
"test": "stat /etc/passwd || exit 1",
|
||||
"interval": 3,
|
||||
"retries": 2,
|
||||
"timeout": 5
|
||||
}
|
||||
}
|
||||
],
|
||||
"next": null
|
||||
|
@ -53,5 +53,11 @@
|
||||
"ports": [],
|
||||
"command": "/bin/sh -c 'echo hello'",
|
||||
"cpu": 2.0,
|
||||
"interactive": false
|
||||
"interactive": false,
|
||||
"healthcheck": {
|
||||
"test": "stat /etc/passwd || exit 1",
|
||||
"interval": 3,
|
||||
"retries": 2,
|
||||
"timeout": 5
|
||||
}
|
||||
}
|
||||
|
@ -51,4 +51,10 @@
|
||||
"cpu": 3.0,
|
||||
"interactive": false,
|
||||
"privileged": false,
|
||||
"healthcheck": {
|
||||
"test": "stat /etc/passwd || exit 1",
|
||||
"interval": 3,
|
||||
"retries": 2,
|
||||
"timeout": 5
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user