adamant-kite-43734
07/11/2024, 7:37 PMfaint-sunset-36608
07/19/2024, 10:24 PMeweber@laptop:~/longhorn-manager> kl get pod -oyaml -l <http://longhorn.io/component=instance-manager|longhorn.io/component=instance-manager> | grep -i livenessprobe -A 12
livenessProbe:
exec:
command:
- /bin/sh
- -c
- test $(nc -zv localhost 8500 > /dev/null 2>&1 && nc -zv localhost 8501
> /dev/null 2>&1 && nc -zv localhost 8502 > /dev/null 2>&1 && nc -zv localhost
8503 > /dev/null 2>&1; echo $?) -eq 0
failureThreshold: 3
initialDelaySeconds: 3
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 4
--
livenessProbe:
exec:
command:
- /bin/sh
- -c
- test $(nc -zv localhost 8500 > /dev/null 2>&1 && nc -zv localhost 8501
> /dev/null 2>&1 && nc -zv localhost 8502 > /dev/null 2>&1 && nc -zv localhost
8503 > /dev/null 2>&1; echo $?) -eq 0
failureThreshold: 3
initialDelaySeconds: 3
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 4
--
livenessProbe:
exec:
command:
- /bin/sh
- -c
- test $(nc -zv localhost 8500 > /dev/null 2>&1 && nc -zv localhost 8501
> /dev/null 2>&1 && nc -zv localhost 8502 > /dev/null 2>&1 && nc -zv localhost
8503 > /dev/null 2>&1; echo $?) -eq 0
failureThreshold: 3
initialDelaySeconds: 3
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 4
You can see where the probes are defined in the Longhorn code at:
https://github.com/longhorn/longhorn-manager/blob/224fa04290ac9daede00b565b1598b7c198d5a90/controller/instance_manager_controller.go#L1352nice-businessperson-14225
07/22/2024, 12:39 PM