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

sentinel整合gateway限流失败 #2047

Closed
zhuwei596177831 opened this issue Feb 25, 2021 · 3 comments
Closed

sentinel整合gateway限流失败 #2047

zhuwei596177831 opened this issue Feb 25, 2021 · 3 comments
Labels
area/gateway-flow-control Issues or PRs related to API gateway flow control

Comments

@zhuwei596177831
Copy link

这是本人gateway模块的依赖 :

com.alibaba.cloud
spring-cloud-starter-alibaba-nacos-discovery


com.alibaba.cloud
spring-cloud-starter-alibaba-nacos-config


com.alibaba.cloud
spring-cloud-starter-alibaba-sentinel


com.alibaba.cloud
spring-cloud-alibaba-sentinel-gateway


org.springframework.cloud
spring-cloud-starter-gateway


com.alibaba.csp
sentinel-datasource-nacos

版本号:2.2.5.RELEASE

yml路由配置:
image

image

@jeesk
Copy link

jeesk commented Feb 26, 2021

确实有问题, 我将spring gateway 集成sentinel 后, 自己注册的限流规则不生效。 必须要dashboard里面推送才能生效, 并且推送还有一定几率异常。

@sczyh30 sczyh30 added the area/gateway-flow-control Issues or PRs related to API gateway flow control label Feb 27, 2021
@zidoshare
Copy link

这是1.7.1的bug,参见#1306。debug一下会发现是GatewayFlowSlot没有被加进来,所以没生效。

@sczyh30
Copy link
Member

sczyh30 commented Apr 7, 2021

可以对照 https://github.com/alibaba/Sentinel/wiki/FAQ 看看相关日志进行排查

@sczyh30 sczyh30 closed this as completed Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/gateway-flow-control Issues or PRs related to API gateway flow control
Projects
None yet
Development

No branches or pull requests

4 participants