krakend / krakend-ratelimit

A collection of curated ratelimiter adaptors for the KrakenD framework
http://krakend.io/
Apache License 2.0
23 stars 26 forks source link

fatal error: concurrent map writes #4

Closed yifanes closed 5 years ago

yifanes commented 5 years ago

krakendrate.go L61 When I used krakend, a fatal error fatal error: concurrent map writes occurred when concurrency was high.

taik0 commented 5 years ago

Hi @yifanes and welcome to the KrakenD Community!

Can you give us more information about this error?

Thank you!

yifanes commented 5 years ago

KrakenD version I use https://github.com/devopsfaith/krakend-ce version: 0.9.1 The full stack trace of the error

Some way to reproduce the bug Just add endpoint config:

      "extra_config": {
        "github.com/devopsfaith/krakend-ratelimit/juju/router": {
          "maxRate": 10000,
          "clientMaxRate": 10000,
          "strategy": "ip"

        },

then, I usewrk -t4 -c1000 -d1m --script=post.lua http://127.0.0.1/api

after start the server, this error appear

How to fix it: I use this pr to fix it. pr

ghost commented 5 years ago

Same here.

kpacha commented 5 years ago

fixed at #5

github-actions[bot] commented 2 years ago

This issue was marked as resolved a long time ago and now has been automatically locked as there has not been any recent activity after it. You can still open a new issue and reference this link.