kongfig icon indicating copy to clipboard operation
kongfig copied to clipboard

Rate limiting plugin issue with multiple consumers

Open bmaynard opened this issue 8 years ago • 2 comments

I have multiple rate plugins assigned to a single api but each record is assigned to a different consumer.

When I do a dump it doesn't export the consumer id:

      - name: rate-limiting
        attributes:
          enabled: true
          config:
            minute: 300
            limit_by: ip
            fault_tolerant: true
            redis_database: 0
            redis_host: 127.0.0.1
            policy: redis
            redis_timeout: 2000
            redis_port: 6379
      - name: rate-limiting
        attributes:
          enabled: true
          config:
            limit_by: ip
            minute: 60
            fault_tolerant: true
            redis_database: 0
            redis_timeout: 2000
            policy: redis
            redis_host: 127.0.0.1
            redis_port: 6379

and if I add consumer_id to the attributes and run apply, it just updates the one plugin record and won't create a new record (if its a new plugin assigned to a different consumer).

bmaynard avatar May 10 '17 16:05 bmaynard

@CyExy I believe these are the same issues that #71 tries to address

tophercullen avatar May 31 '17 11:05 tophercullen

Maybe it should be closed then

julienlau avatar Jan 09 '19 09:01 julienlau