Hacker News new | ask | show | jobs
Ask HN: What is the simple way to ensure internal services stay up?
2 points by vsroy 1015 days ago
My server runs a core loop that must do an iteration at least once a minute. If it fails to do an iteration, I should be notified.

What's the easiest way to do this? Seems like I can either: 1. ping a service like healthchecks.io at the start of a loop or 2. expose some HTTP endpoint indicating whether the loop is running on time

Not sure if both are equivalent

1 comments

once a minute is very lax. you could touch a file and check it w another process for 100% offline checking of your loop. or about a million other things.

if you want it online then yeah, slap an endpoint in to show last loop time, and you can instantly tell it stopped a while ago, etc