1024-zzw opened a new issue, #8190:
URL: https://github.com/apache/apisix/issues/8190

   ### Description
   
   第一种:limit-count直接使用redis作为全局限速使用
   1、这是我的limit-count配置:
   count: 10
   time_window: 60
   key_type: var
   key: remote_addr
   rejected_code: 539
   policy: redis
   group: remote_addr
   allow_degradation: true
   show_limit_quota_header: true
   redis_host: xxxxxx.redis.rds.aliyuncs.com
   redis_port: 6379
   redis_password: xxxxxx
   redis_database: 40
   redis_timeout: 1000
   2、当我修改count=1500,从响应头仍然反馈是10的限速
   count: 1500
   time_window: 60
   key_type: var
   key: remote_addr
   rejected_code: 539
   policy: redis
   group: remote_addr
   allow_degradation: true
   show_limit_quota_header: true
   redis_host: xxxxxx.redis.rds.aliyuncs.com
   redis_port: 6379
   redis_password: xxxxxx
   redis_database: 40
   redis_timeout: 1000
   第二种:先使用local,后使用redis作为全局限速使用,再改为local,发现local的限速即使配置了,也没有
   呈现出限速的效果
   第三种:直接使用local,这是没有问题的
   
   ### Environment
   
   - APISIX version (run `apisix version`): 2.15.0
   - Operating system (run `uname -a`): Linux apisix-76fcff66bd-qsznl 
5.17.4-1.el7.elrepo.x86_64 
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): 
openresty/1.21.4.1
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`): 
{"etcdserver":"3.4.18","etcdcluster":"3.4.0"}
   - APISIX Dashboard version, if relevant: 2.13.0
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to