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
Add default routes and controllers for /startup, /liveness, /readiness. And some top level functions for control liveness/readiness state (ex app.liveness(true), app.readiness(false)).
The text was updated successfully, but these errors were encountered:
Plugin bad for this. For example I have plugin for redis, and I need set readiness for false when redis down.
When this logic (probe endpoints) realised as plugin I get problem:
How I can check that the probe plugin enabled from redis plugin?
If probes work globally and enabled const app = mojo({probes: true}); I can write something like this in my redis plugin
// When redis down
if (app.probesEnabled === true) {
app.readiness(false);
}
And I can't understand how I can check server liveness from plugin:
How I can check that all workers live? and not hungup?
Add default routes and controllers for
/startup
,/liveness
,/readiness
. And some top level functions for control liveness/readiness state (ex app.liveness(true), app.readiness(false)).The text was updated successfully, but these errors were encountered: