alibaba / Sentinel

A powerful flow control component enabling reliability, resilience and monitoring for microservices. (面向云原生微服务的高可用流控防护组件)
https://sentinelguard.io/
Apache License 2.0
22.38k stars 8.02k forks source link

The configured gateway current limit is not in effect #1036

Closed purgeyao closed 5 years ago

purgeyao commented 5 years ago

The configured gateway current limit is not in effect. springcloud zuul image image Access is still available after configuration. Normal application configuration works.

purgeyao commented 5 years ago

@sczyh30 Please help me look at it.

purgeyao commented 5 years ago
    <dependency>
      <groupId>com.alibaba.cloud</groupId>
      <artifactId>spring-cloud-alibaba-sentinel-gateway</artifactId>
    </dependency>
    <dependency>
      <groupId>com.alibaba.cloud</groupId>
      <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
    </dependency>
purgeyao commented 5 years ago
# sentinel dashboard
spring.cloud.sentinel.transport.dashboard=${SENTINEL_DASHBOARD:10.1.1.99:31001}
feign.sentinel.enabled=true
sczyh30 commented 5 years ago

The GatewayFlowRule only takes effect for gateway routes or customized API groups. You may have to disable the Sentinel web filter, see https://github.com/alibaba/spring-cloud-alibaba/issues/821

fangjian0423 commented 5 years ago

And you could refer Sentinel Zuul Example.

purgeyao commented 5 years ago

@fangjian0423 It has been solved. Thank you.