-
Notifications
You must be signed in to change notification settings - Fork 8k
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
Support flow control behavior customization #3193
base: master
Are you sure you want to change the base?
Conversation
Hi, could you please sign the CLA here: https://cla-assistant.io/alibaba/Sentinel?pullRequest=3193 |
agreed |
已修复不兼容历史FlowRule对比问题 @sczyh30 幸苦 |
这个需要点进去用 GitHub 登录后点击 sign 哈,目前状态好像还没同步过来。 |
找到原因,已修复,幸苦 |
601938b
to
41b8e57
Compare
求助, |
@sczyh30 @LearningGp 抱歉,关于支持流量控制行为定制,提高灵活性的这个pr,我提交几个月了,没有反馈,不知是否我步骤有误或存在其它问题? |
8c8519b
to
41b8e57
Compare
41b8e57
to
315c31f
Compare
Describe what this PR does / why we need it
支持流量控制行为定制,提高灵活性
Does this pull request fix one issue?
feature:#3189
Describe how you did it
1 扩展ControlBehavior 枚举行为,FlowRule.class新增public 方法,设置控制行为器
2 扩展com.alibaba.csp.sentinel.slots.block.flow.FlowRuleUtil#generateRater 方法
Describe how to verify it
单元测试:com.alibaba.csp.sentinel.slots.block.flow.FlowRuleCheckerTest#testCustomTrafficShapingController
Special notes for reviews