livepeer/go-livepeer

Register gRPC health check server when running gRPC server as an O

オープン

#2,076 opened on 2021/10/28

 (0 件のコメント) (0 件のリアクション) (1 人の担当者)Go (223 件のフォーク)auto 404
area: orchestrator QoLgood first issuetype: feature

Repository metrics

Stars
 (583 個のスター)
PR merge metrics
 (PR metrics pending)

説明

At the moment, the easiest way to run a health check for an O is to query the CLI server that O starts i.e. curl localhost:7935/status. However, this just tells us if the CLI server is up. It'd be nice to have a health check that can tell us if the gRPC server for the O is up as well. This can be done using gRPC health checking. We just need to register the health server with the gRPC server as an O. Then, you could use a gRPC health probe to check on the health of the gRPC server.

See this example of registering the health server for livepeer_router.

コントリビューターガイド