liubao68 opened a new issue #1258:
URL: https://github.com/apache/servicecomb-service-center/issues/1258
场景:
用户想结合自己的逻辑判断,告诉自己的状态是否正常。
比如数据库故障了, 虽然心跳正常,但是服务不可用。
目前考虑的实现方案有几种:
(1) heartbeat接口能够上报状态。 业务通过自定义检查,如果可用,则在心跳将状态设置为UP,否则设置为DOWN。
(2)业务检测到不可用, 调用updateMicroserviceInstanceStatus更新为DOWN。
但是这个方案期望heartbeat接口能否返回当前状态,从而降低调用updateMicroserviceInstanceStatus的频率, 提升可靠性。
期望:
(1)heartbeat接口可以指定状态信息 or
(2)heartbeat接口返回当前状态信息
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]