You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can happen that a process crashes in a way where it gets stuck but doesn’t exits. For this reason Docker (and Kubernetes) has a feature called health check that allows to check that the process is still working as expected (and restart the container if not).
This can be done by a script doing some hard work, but most of the time it’s just about curl’ing a simple API endpoint that replies with HTTP status code 200.
PeerTube doesn’t have such an health check endpoint.
Describe the solution you would like:
This endpoint should do the following:
Reply with status code 200
(Optional) Reply with a JSON body describing the current status (it’s often just {"status": "ok"})
Avoid logging request either at the discretion of the administrator (with a specific setting in the configuration files) or at the discretion of the client (with a query parameter e.g. <endpoint>?silent=true)
The path of the endpoint could be something like /health/live (in line with how Kubernetes names this feature, and would allow for an eventual future implementation of a “readiness” use this feature and allow a /health/ready
Describe alternatives you have considered
I am currently using / to check if PeerTube is still alive, but the main issue is that it logs every single request:
Describe the problem to be solved
It can happen that a process crashes in a way where it gets stuck but doesn’t exits. For this reason Docker (and Kubernetes) has a feature called health check that allows to check that the process is still working as expected (and restart the container if not).
This can be done by a script doing some hard work, but most of the time it’s just about curl’ing a simple API endpoint that replies with HTTP status code 200.
PeerTube doesn’t have such an health check endpoint.
Describe the solution you would like:
This endpoint should do the following:
{"status": "ok"}
)<endpoint>?silent=true
)The path of the endpoint could be something like
/health/live
(in line with how Kubernetes names this feature, and would allow for an eventual future implementation of a “readiness” use this feature and allow a/health/ready
Describe alternatives you have considered
I am currently using
/
to check if PeerTube is still alive, but the main issue is that it logs every single request:The text was updated successfully, but these errors were encountered: