Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flow control by Dubbo group-version-interface level | Dubbo group+version+interface 细粒度流控支持 #2811

Closed
sq-young2 opened this issue Aug 4, 2022 · 5 comments
Labels
area/integrations Issues or PRs related to integrations with open-source components kind/question Category issues related to questions or problems

Comments

@sq-young2
Copy link

sq-young2 commented Aug 4, 2022

本身框架底层的所有RPC使用的dubbo interface都是同一个,有好的方案进行自定义熔断吗,目前只支持interface和method配置


Flow control by Dubbo group-version-interface level.

@sczyh30
Copy link
Member

sczyh30 commented Aug 4, 2022

可否给个例子,详细描述一下使用场景?

@sq-young2
Copy link
Author

好的,感谢回复哦。
我目前的调用链路是,前置->中心服务,因为底层是通过公司框架组成,前置通过dubbo调用中心服务时候,是统一使用一个接口类进行的,就像如图所示,

<dubbo:reference id="U0001" group="U0001" interface="com.service.FlowService" version="${dubbo.registry.version}"/>	
<dubbo:reference id="U0002" group="U0002" interface="com.service.FlowService" version="${dubbo.registry.version}"/>
<dubbo:reference id="U0003" group="U0003" interface="com.service.FlowService" version="${dubbo.registry.version}"/>
<dubbo:reference id="U0004" group="U0004" interface="com.service.FlowService" version="${dubbo.registry.version}"/>

如果熔断时候通过这个interface进行,还会导致所有RPC接口出现异常,应该按照group进行熔断较好,所以想寻求下大神的建议

@sczyh30
Copy link
Member

sczyh30 commented Aug 4, 2022

Dubbo 按 group 和 version 维度进行详细划分的流量治理,Sentinel 目前其实也是支持的,启动参数加上 -Dcsp.sentinel.dubbo.interface.group.version.enabled=true 即可让 Dubbo 埋点资源名带上 group 和 version。


Dubbo group+version+interface level is supported in Sentinel Dubbo adapter. You may just add -Dcsp.sentinel.dubbo.interface.group.version.enabled=true JVM property, then the resource name of the Dubbo interface and method will be prefixed with group and version info.

@sczyh30 sczyh30 added kind/question Category issues related to questions or problems area/integrations Issues or PRs related to integrations with open-source components labels Aug 4, 2022
@sczyh30 sczyh30 changed the title 本身框架底层的所有RPC使用的dubbo interface都是同一个,有好的方案进行自定义熔断吗,目前只支持interface和method配置 Flow control by Dubbo group-version-interface level | Dubbo group+version+interface 细粒度流控支持 Aug 4, 2022
@sq-young2
Copy link
Author

好的,那我测试下看看,也是刚看到getInterfaceName的时候看到了这个开关

@sczyh30 sczyh30 closed this as completed Aug 29, 2022
@sq-young2
Copy link
Author

sq-young2 commented Sep 21, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/integrations Issues or PRs related to integrations with open-source components kind/question Category issues related to questions or problems
Projects
None yet
Development

No branches or pull requests

2 participants