practica icon indicating copy to clipboard operation
practica copied to clipboard

Write health library that tells when the server is in panic

Open goldbergyoni opened this issue 2 years ago • 2 comments

🎯 Goal: - Write a library that is being initialized by the app which will expose endpoint telling whether the app is read or not. This is needed for the runtime to determine whether to kill this instance. Also useful for "ops" visits to diagnose issues

✅ Requirements:

  • Should be implemented as library in ./src/code-templates/libraries
  • Should expose an endpoint that returns 200 if all good and 500 if the component is facing severe issues. See Kubernetes guide as an example
  • How to determine a bad state? This can lead to a philosophical discussion, for a start if the DB+API are responsive - It seems OK. Have other ideas for simple measures?
  • Should check healthiness also on start time so the process immediately crashes
  • Should log+fire metric when something goes wrong

✅ Requirements:

  • ⚙️ Tech considerations

  • Soon

goldbergyoni avatar Apr 01 '22 08:04 goldbergyoni

Hey @goldbergyoni I will take this task :)

RonDaha avatar Apr 17 '22 14:04 RonDaha

Very cool. Let's plan briefly? This task deserve some more clarification

On Sun, Apr 17, 2022, 5:09 PM Ron Dahan @.***> wrote:

Hey @goldbergyoni https://github.com/goldbergyoni I will take this task :)

— Reply to this email directly, view it on GitHub https://github.com/practicajs/practica/issues/37#issuecomment-1100885560, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBMU3DF5A7VE4GYD3JUOULVFQLSNANCNFSM5SH4T74A . You are receiving this because you were mentioned.Message ID: @.***>

goldbergyoni avatar Apr 17 '22 16:04 goldbergyoni