alibaba / spring-cloud-alibaba

Spring Cloud Alibaba provides a one-stop solution for application development for the distributed solutions of Alibaba middleware.
https://sca.aliyun.com
Apache License 2.0
27.94k stars 8.33k forks source link

[Governance] Implement OutlierDetection By RDS Protocol #2975

Closed 123liuziming closed 1 year ago

123liuziming commented 1 year ago

背景说明

目前Spring Cloud Alibaba的治理模块已经有服务鉴权,标签路由等功能,为了完善Spring Cloud Alibaba的治理生态,我们还需要研发更多的服务治理相关Feature,离群实例摘除就是其中的一个。离群实例摘除可以在消费者端通过判断请求服务提供者实例的连续错误次数,错误间隔等指标,来将可能有问题的服务提供者实例从服务发现列表中进行剔除

如何做

  1. 在Istio-resource-transform的RdsProtocol中解析出离群实例摘除的配置
  2. 获取到离群实例摘除的配置后,结合不同的服务发现组件(Nacos, Eureka, EDS协议等),获取最终的Endpoints列表
  3. 将最终的Endpoints列表以某种方式提供给feign,rest template等spring cloud客户端

    Background

    At present, the governance module of Spring Cloud Alibaba has service authentication, label routing and other functions. In order to enhance the governance module of Spring Cloud Alibaba, we need to develop more service governance-related features, and OutlierDetection is one of them. OutlierDetection can be used to remove potentially problematic service provider instances from the service discovery list at the consumer end by judging the consecutive error times and error intervals of the request service provider instances

    How to do

  4. In the RdsProtocol of Istio-resource-transform, resolve the configuration of outlier instance removal
  5. After obtaining the configuration of outlier instance removal, combine different service discovery components (Nacos, Eureka, EDS protocol, etc.) to obtain the final Endpoints list
  6. Provide the final list of Endpoints to spring cloud clients such as feign, rest template, etc
github-actions[bot] commented 1 year ago

This issue has been open 30 days with no activity. This will be closed in 7 days.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it hasn't had any recent activity.If you think this should still be open, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for your interest and contribution to the Sping Cloud Alibaba Community.