Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

Commit 5180bfa

Browse files
committed
Update README.md and improve docs.
1 parent f213211 commit 5180bfa

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
![](https://img.shields.io/github/workflow/status/darwinia-network/node-liveness-probe/Production)
44
![](https://img.shields.io/github/v/release/darwinia-network/node-liveness-probe)
55

6-
The node liveness probe is a sidecar container that exposes an HTTP `/healthz` endpoint, which serves as kubelet's livenessProbe hook to monitor health of a Darwinia node.
6+
The node liveness probe is a sidecar container that exposes an HTTP `/healthz` endpoint, which calls several RPC methods via a WebSocket connection to check and serves as kubelet's livenessProbe hook to monitor health of a Darwinia node.
7+
8+
It also experimentally provides a readiness probe endpoint `/readiness`, which reports if the node is ready to handle RPC requests by determining if the syncing progress is done.
79

810
## Releases
911

@@ -28,15 +30,18 @@ spec:
2830
ports:
2931
- name: healthz
3032
containerPort: 49944
31-
# The probe
32-
readinessProbe: &probe
33+
# The liveness probe
34+
livenessProbe:
3335
httpGet:
3436
path: /healthz
3537
port: healthz
36-
timeoutSeconds: 3
37-
livenessProbe:
38-
<<: *probe
3938
initialDelaySeconds: 60
39+
timeoutSeconds: 3
40+
# The experimental readiness probe
41+
readinessProbe:
42+
httpGet:
43+
path: /readiness
44+
port: healthz
4045
# ...
4146

4247
# The liveness probe sidecar container
@@ -49,12 +54,20 @@ spec:
4954

5055
Notice that the actual `livenessProbe` field is set on the node container. This way, Kubernetes restarts darwinia node instead of node-liveness-probe when the probe fails. The liveness probe sidecar container only provides the HTTP endpoint for the probe and does not contain livenessProbe section by itself.
5156

57+
It is recommended to increase the option `--timeout` and Pod spec `.containers.*.livenessProbe.timeoutSeconds` a bit (e.g. 3 seconds), if you have a heavy load on your node, since the probe process involves multiple RPC calls.
58+
59+
## Configuration
60+
5261
To get the full list of configurable options, please use `--help`:
5362

5463
```bash
5564
docker run --rm -it quay.io/darwinia-network/node-liveness-probe:VERSION --help
5665
```
5766

67+
## Compatibility
68+
69+
The node liveness probe should be compatible with nodes of other Substrate-based chains, such as Polkadot and Kusama, although that hasn't been well tested. Please consider submitting an issue if you're experiencing any problem with these nodes to help us improve the compatibilities.
70+
5871
## Special Thanks
5972

6073
- <https://github.com/kubernetes-csi/livenessprobe>

0 commit comments

Comments
 (0)