我不能玩Spring Cloud Gateway的Ratelimiter。 我在这里配置网关:
spring:
cloud:
gateway:
discovery:
locator:
enabled: true
routes:
#Admin
- id: haft-upms-admin
uri: lb://haft-upms-admin
predicates:
- Path=/admin/**
filters:
- name: RequestRateLimiter
args:
key-resolver: '#{@remoteAddrKeyResolver}'
redis-rate-limiter.replenishRate: 1
redis-rate-limiter.burstCapacity: 1
- name: Hystrix
args:
name: default
fallbackUri: 'forward:/fallback'
我使用JMeter调用API循环1000次,但网关没有响应429响应中有太多请求。 我在哪里错了?