Ludovic Courtès <[email protected]> writes:

> Hi,
>
> Giacomo Leidi <[email protected]> skribis:
>
>> Hi all, yes I agree with Rutherther, I think it' be awesome™ if the
>> Shepherd supported some kind of heath checkers. They could be a list
>> of executables which must return 0 or the service is considered
>> unhealthy.
>>
>> I think docker compose supports something similar.
>
> Do you have links to documentation of things like that?  I’m curious.

Probably healthcheck[0]?  And Kubernetes have a similar concept called
probes[1].

These basically allow to define a custom action(s) to check whether
service is healthy (in addition to the default "is PID still alive").
If it is deemed not healthy, usually the action is to automatically
restart it.

0: https://docs.docker.com/reference/compose-file/services/#healthcheck
1: 
https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/

Tomas

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

Attachment: signature.asc
Description: PGP signature

Reply via email to