healthcheck vs watchdog #59
-
|
Hello! With only option Is healthcheck have the same functionality as watchdog? Or is it's just the same msg text. Think there should be the more description in Readme. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hello, thanks for reaching out. Short answer: While the health check ist the health check done with Docker or the container orchestrator, the watchdog ist an internal function to check the socket connectivity (and quit if the connection is dead, so that Docker can restart socket-proxy with a new socket connection). Personally, I prefer to use the internal watchdog in my use case. The health check is for use cases when a container health status is needed. Errors have to be handled from Docker or the orchestrator then. Both health check and watchdog are using the same internal function to test the socket availability, so the log entries are the same. I'll add this to the Readme later. |
Beta Was this translation helpful? Give feedback.
Hello, thanks for reaching out.
Short answer: While the health check ist the health check done with Docker or the container orchestrator, the watchdog ist an internal function to check the socket connectivity (and quit if the connection is dead, so that Docker can restart socket-proxy with a new socket connection).
Personally, I prefer to use the internal watchdog in my use case. The health check is for use cases when a container health status is needed. Errors have to be handled from Docker or the orchestrator then.
Both health check and watchdog are using the same internal function to test the socket availability, so the log entries are the same.
I'll add this to the Readme later.