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

[new feture] support client-user level rate limit #218

Open
funnyAnt opened this issue May 13, 2022 · 1 comment
Open

[new feture] support client-user level rate limit #218

funnyAnt opened this issue May 13, 2022 · 1 comment

Comments

@funnyAnt
Copy link
Contributor

funnyAnt commented May 13, 2022

By configuring max_rate_limit in user properties, achieve the effect of flow control 。Detail config as following:

"users": [
        {
            "user_name": "**",
            "password": "***",
            "namespace": "sysbench_4",
            "rw_flag": 2,
            "rw_split": 1,
            "open_rate_limit": true,
            "max_rate_limit": 1000,
            "max_token_wait_time": 10
        }
    ],
funnyAnt added a commit to funnyAnt/Gaea that referenced this issue May 13, 2022
@gongna-au
Copy link
Collaborator

gongna-au commented Oct 9, 2024

Support by Gaea 2.4

  • 两个控制开关。一个控制限制的qps,另一个控制是否限制事务,都是 namespace 级别。
  • 实际 Qps 计算规则等同于 Gaea qps 监控,即: Prepare 语句不统计 query 次数,execute 语句统计 1 次 query,多语句统计 1 次 query。其他普通 sql 统计 1 次 query
  • 同时还支持配置是否支持限制事务,(若在事务中被限流,Gaea 端会主动关闭客户端连接)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants