jeremy1392 opened a new issue, #11774:
URL: https://github.com/apache/apisix/issues/11774

   ### Current Behavior
   
   I try to apply limit-count with redis to limit the API rate per consumers.
   My redis server works well.
   
   The **1st** bug: it applies limit on routes and not on global and 
consumer_name is not working.
   
![image](https://github.com/user-attachments/assets/9f5d7baa-f270-40a9-a5a8-4e8f35363b7e)
   
   The **2nd** bug: after some times, the plugin crashes:
   
   
   
   ### Expected Behavior
   
   API rate at consumer_name level.
   If I have 30 routes and 1 consumer with API rate limiting of 1000.
   I expect to have those 3000 requests split across routes.
   
   ### Error Logs
   
   2024/11/21 20:37:20 [warn] 57#57: *8 [lua] plugin.lua:954: decrypt_conf(): 
failed to get schema for plugin: limit-count, context: init_worker_by_lua*
   
   ### Steps to Reproduce
   
   CONTAINER ID   IMAGE                                  COMMAND                
  CREATED          STATUS         PORTS                                         
                                                                                
                                                                                
                    NAMES
   e9dd32464ac9   apache/apisix:latest                   "/docker-entrypoint.…" 
  57 minutes ago   Up 2 minutes   0.0.0.0:32936->9080/tcp, :::32936->9080/tcp, 
0.0.0.0:32935->9091/tcp, :::32935->9091/tcp, 0.0.0.0:32934->9092/tcp, 
:::32934->9092/tcp, 0.0.0.0:32933->9180/tcp, :::32933->9180/tcp, 
0.0.0.0:32932->9443/tcp, :::32932->9443/tcp   root_apisix_1
   633a442adcf6   nginx:alpine                           "/docker-entrypoint.…" 
  6 weeks ago      Up 6 weeks     0.0.0.0:80->80/tcp, :::80->80/tcp             
                                                                                
                                                                                
                    loadbalancer
   d0b2957d213a   apache/apisix-dashboard:3.0.0-alpine   "/usr/local/apisix-d…" 
  6 weeks ago      Up 6 weeks     0.0.0.0:9000->9000/tcp, :::9000->9000/tcp     
                                                                                
                                                                                
                    apisix-dashboard
   b9fe507b91d2   prom/prometheus:v2.25.0                "/bin/prometheus --c…" 
  6 weeks ago      Up 6 weeks     9090/tcp                                      
                                                                                
                                                                                
                    prometheus
   93afedfafa73   grafana/grafana:latest                 "/run.sh"              
  6 weeks ago      Up 6 weeks     0.0.0.0:3000->3000/tcp, :::3000->3000/tcp     
                                                                                
                                                                                
                    grafana
   1eb17a543ca0   bitnami/etcd:3.5.11                    "/opt/bitnami/script…" 
  6 weeks ago      Up 6 weeks     0.0.0.0:2379->2379/tcp, :::2379->2379/tcp, 
2380/tcp                                                                        
                                                                                
                       etcd
   8538722a1a75   grafana/loki:latest                    "/usr/bin/loki -conf…" 
  6 weeks ago      Up 6 weeks     0.0.0.0:3100->3100/tcp, :::3100->3100/tcp     
                                                                                
                                                                                
                    loki
   
   
   ### Environment
   
   - APISIX version (run `apisix version`): latest
   - Operating system (run `uname -a`): Linux Ubuntu-2204-jammy-amd64-base 
5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64 x86_64 
x86_64 GNU/Linux
   


-- 
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