You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/02/19 03:05:22 UTC
[GitHub] [apisix] ShenAoScript opened a new issue #3602: request help: About current limiting algorithm
ShenAoScript opened a new issue #3602:
URL: https://github.com/apache/apisix/issues/3602
### Issue description
About current limiting algorithm
### Environment
* apisix version (cmd: `apisix version`): 2.0+
* OS (cmd: `uname -a`):centos7
Now the plugin "limit-req" algorithm is
` if delay >= 0.001 then
sleep(delay)
end`
If I turn it intoļ¼
` if delay >= 0.001 then
--sleep(delay)
end`
so, the leaky bucket becomes the token bucket ?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] ShenAoScript commented on issue #3602: request help: About current limiting algorithm
Posted by GitBox <gi...@apache.org>.
ShenAoScript commented on issue #3602:
URL: https://github.com/apache/apisix/issues/3602#issuecomment-781836207
ok,I've seen people say that on the Internet.and it's puzzles me.
thanks for your ans.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #3602: request help: About current limiting algorithm
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3602:
URL: https://github.com/apache/apisix/issues/3602#issuecomment-781795034
No
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander closed issue #3602: request help: About current limiting algorithm
Posted by GitBox <gi...@apache.org>.
spacewander closed issue #3602:
URL: https://github.com/apache/apisix/issues/3602
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #3602: request help: About current limiting algorithm
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3602:
URL: https://github.com/apache/apisix/issues/3602#issuecomment-781795965
Please read the definition of these two algorithms:
https://en.wikipedia.org/wiki/Token_bucket
https://en.wikipedia.org/wiki/Leaky_bucket
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org