bee-dashboard icon indicating copy to clipboard operation
bee-dashboard copied to clipboard

Health of API and debug API should be websocket connection

Open vojtechsimetka opened this issue 3 years ago • 4 comments

Both standard API and debug API should have health endpoint which would be websocket. This way the bee-status can monitor the endpoint and alert user if anything goes wrong.

vojtechsimetka avatar Mar 10 '21 19:03 vojtechsimetka

These would require changes from the Bee side too. We can have this functionality by setting up a timer that checks the health endpoints without websocket.

agazso avatar Mar 11 '21 08:03 agazso

Yes that is the ultimate idea - to have a discussion about such endpoint on Bee.

Great suggestion with the polling solution.

vojtechsimetka avatar Mar 11 '21 10:03 vojtechsimetka

On bee side - not sure, since k8s is polling these endpoints too, it means that they might need to be implemented to support both ws and normal json responses. Which is probably doable. Not sure how urgent this is though.

acud avatar Mar 16 '21 12:03 acud

@vojtechsimetka , if this functionality can be implemented also on the js-side, I would suggest to do it like that for now.

Eknir avatar Mar 18 '21 10:03 Eknir