Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

基于ip的限流插件 #851

Open
CPAltair opened this issue Mar 1, 2024 · 8 comments
Open

基于ip的限流插件 #851

CPAltair opened this issue Mar 1, 2024 · 8 comments

Comments

@CPAltair
Copy link

CPAltair commented Mar 1, 2024

key-rate-limit插件目前只支持limit_by_header和limit_by_param 2种限流维度,希望插件能加上基于client ip的限流 或 新插件实现
需求:

  1. 每个client请求达到阈值触发限流并可自定义的respon code和respon text
  2. 基于client ip的策略可与 limit_by_header 或 limit_by_param同时启用不冲突
  3. 基于client ip的策略支持 令牌、桶漏、滑动窗口等主流限流算法
  4. 支持全局限流
@johnlanni
Copy link
Collaborator

计划后续基于插件中访问redis的能力来扩展实现这一能力

@johnlanni
Copy link
Collaborator

插件sdk已经支持redis api,欢迎认领

@hanxiantao
Copy link
Contributor

hanxiantao commented Apr 24, 2024

这个是go的插件吗,如果是go的话,我这边可以尝试下,请帮忙分配下,感谢 @johnlanni

@johnlanni johnlanni removed the help wanted Extra attention is needed label Apr 25, 2024
@wapmnw
Copy link

wapmnw commented May 17, 2024

@johnlanni
插件是还没更新么,在官方文档中还只有limit_by_header和limit_by_param
image

@hanxiantao
Copy link
Contributor

hanxiantao commented May 17, 2024

@johnlanni 插件是还没更新么,在官方文档中还只有limit_by_header和limit_by_param image

@wapmnw 集群限流的插件需要使用redis的能力,但envoy中使用redis的能力还未开源,开源后我这边会继续跟进这个功能,目前已经开发了一部分,但无法调试和使用

@wapmnw
Copy link

wapmnw commented May 17, 2024

@johnlanni 插件是还没更新么,在官方文档中还只有limit_by_header和limit_by_param image

@wapmnw 集群限流的插件需要使用redis的能力,但envoy中使用redis的能力还未开源,开源后我这边会继续跟进这个功能,目前已经开发了一部分,但无法调试和使用

好的明白了,谢谢

@johnlanni
Copy link
Collaborator

@hanxiantao 最新发布的1.4.0-rc.1已经支持插件里访问redis了,可以试试

@hanxiantao
Copy link
Contributor

@hanxiantao 最新发布的1.4.0-rc.1已经支持插件里访问redis了,可以试试

好的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

4 participants