mirror of
https://github.com/fosrl/newt.git
synced 2026-03-09 07:12:28 -05:00
Implement healthcheck endpoint #43
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sebastiangaiser on GitHub (Jul 28, 2025).
Hey,
I experienced that newt was not able to connect. After a simple restart the connect was successful.
In this case it would be helpful if a HTTP based api would return that newt was not fully started. This then could be used for a health check, e.g. when running in Kubernetes by building a readiness probe.
Let me know what you think. Thanks
@itsbhanusharma commented on GitHub (Jul 31, 2025):
Hey,
Adding to this, maybe my issue is totally unrelated but we experience newt is not able to re-establish connections in case the host (or Router) (or Internet in general) loses connection. We have backup internet so technically if newt is trying to reconnect it should be able to reconnect using the new route. However, it seems like newt is sticking to the one route it has established (aka primary) and if primary goes down, newt will not connect work correctly unless restarted. Maybe there is a way to implement some internal checks too which ensure that if newt is not able to reach the server, it either alerts or retries somehow.in the latest version there is a Healthy health check which is working great for my use case
@macdaddybighorn commented on GitHub (Aug 20, 2025):
I'm not seeing a health check in my docker instance running newt 1.4.1 (latest). I also experienced this issue a couple times when the pangolin docker stack updated (auto update via watchtower) and newt failed to connect when it was re-created. A simple restart allows it to connect and continue working fine. The error I saw in the logs was:
It repeats continuously until restarted.
@itsbhanusharma commented on GitHub (Aug 20, 2025):
did you enable the healthcheck using environment variable?
I have added this to my compose.yaml
And then a healthcheck as follows:
@sebastiangaiser commented on GitHub (Aug 20, 2025):
@itsbhanusharma thanks for pointing that out. I was more looking for e.g. a
/healthzand/or/readyzhttp based endpoint.@oschwartz10612 commented on GitHub (Aug 23, 2025):
I think what @itsbhanusharma explains is what we will stick with for
now. BUT if we add a http API like is budding in fosrl/olm then we could
definitely add it there! ;}