Settings

Theme

Ask HN: What is the simple way to ensure internal services stay up?

2 points by vsroy 2 years ago · 1 comment · 1 min read


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

sitzkrieg 2 years ago

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

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection