spring-cloud-alibaba icon indicating copy to clipboard operation
spring-cloud-alibaba copied to clipboard

Add out-of-box support for Sentinel OpenSergo data-source

Open sczyh30 opened this issue 2 years ago • 4 comments

Which Component

Sentinel, OpenSergo

Describe the solution you'd like

Sentinel v1.8.6 introduces the data-source module of OpenSergo fault-tolerance spec. We could add support for OpenSergo data-source in spring-cloud-starter-alibaba-sentinel module (perhaps in spring-cloud-alibaba-sentinel-datasource).

Sentinel 1.8.6 版本引入了 OpenSergo 数据源模块,从而支持通过 OpenSergo 流量防护与容错 spec CRD 来统一管控流量防护规则。SCA 里面 Sentinel 相关 starter 模块可以添加对该模块的快速接入支持,以便用户可以可以很方便地通过 OpenSergo 统一控制面来管控 SCA 的流量治理规则。

Additional context

OpenSergo 流量防护与容错 spec: https://github.com/opensergo/opensergo-specification/blob/main/specification/zh-Hans/fault-tolerance.md

sczyh30 avatar Jan 10 '23 13:01 sczyh30

Please assign it to me.

123liuziming avatar Jan 11 '23 05:01 123liuziming

It sounds good!

steverao avatar Jan 11 '23 06:01 steverao

一个简单的用户使用流程示例(仅做流程参考,名称、形式后续讨论):

用户引入 SCA Sentinel starter 模块,按照以下配置即可快速开启 OpenSergo spec 支持,无需再改代码:

# 配置 OpenSergo 控制面 endpoint
spring.cloud.opensergo.endpoint=127.0.0.1:10246

spring.cloud.sentinel.datasource.opensergo.enabled-rules=flow,degrade,system

sczyh30 avatar Jan 28 '23 03:01 sczyh30

I‘ve submit a POC pr here https://github.com/alibaba/spring-cloud-alibaba/pull/3142

123liuziming avatar Feb 06 '23 03:02 123liuziming

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

github-actions[bot] avatar Mar 19 '24 18:03 github-actions[bot]

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.

github-actions[bot] avatar Mar 26 '24 18:03 github-actions[bot]