Uh oh!
There was an error while loading. Please reload this page.
[feature](meta-service) Support querying and adjusting rpc qps limit on meta service - #42413
Conversation
doris-robot
commented
Oct 24, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
| @@ -19,10 +19,13 @@ | |||
| #include <brpc/server.h> | |||
There was a problem hiding this comment.
warning: 'brpc/server.h' file not found [clang-diagnostic-error]
#include<brpc/server.h>
^928d926 to
453770fCompare| @@ -17,8 +17,11 @@ | |||
| #include "rate-limiter/rate_limiter.h" | |||
There was a problem hiding this comment.
warning: 'rate-limiter/rate_limiter.h' file not found [clang-diagnostic-error]
#include"rate-limiter/rate_limiter.h"
^cb4d256 to
063ca50CompareHastyshell
commented
Oct 25, 2024
run buildall |
063ca50 to
ebe7ddfCompareHastyshell
commented
Oct 25, 2024
run buildall |
ebe7ddf to
e3098abCompareHastyshell
commented
Oct 28, 2024
run buildall |
Hastyshell
commented
Oct 31, 2024
run buildall |
c6532ab to
e541fabCompareHastyshell
commented
Oct 31, 2024
run buildall |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
e541fab to
c997f0dCompareHastyshell
commented
Oct 31, 2024
run buildall |
gavinchou
commented
Nov 1, 2024
Add some usage examples in description. |
c997f0d to
1b6cbeaCompareHastyshell
commented
Nov 5, 2024
run buildall |
Uh oh!
There was an error while loading. Please reload this page.
| qps_limit_str, rpc_name, instance_id)); | ||
| }; | ||
| static auto parse_qps_limit = |
There was a problem hiding this comment.
it seems that abuse using lambdas
| }); | ||
| }; | ||
| // for 8 element in true table of params, register processor cb |
There was a problem hiding this comment.
Maybe I'll add some comments, just register different callback for different params pattern, and the "abuse" of lamda are just meant to adapt for this.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hastyshell
commented
Nov 12, 2024
run buildall |
84e350b to
70f9607CompareHastyshell
commented
Nov 13, 2024
run buildall |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
Hastyshell
commented
Nov 13, 2024
run compile |
Hastyshell
commented
Nov 13, 2024
run cloud_p0 |
Hastyshell
commented
Nov 13, 2024
run p0 |
Hastyshell
commented
Nov 13, 2024
run external |
…on meta service (#42413) ## Proposed changes Usage 1. adjust limit ``` curl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?${params} ``` | Entry | Description | | ----------- | ----------- | | param | uint64 qps_limit | |behavior | set qps_limit global default value | |example|```curl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?qps_limit=5000000```| | Entry | Description | | ----------- | ----------- | | param | uint64 qps_limit, string rpc_name | |behavior | set RPC specific qps_limit | |example|curl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?qps_limit=5000000&rpc_name=get_cluster| | Entry | Description | | ----------- | ----------- | | param | uint64 qps_limit, string rpc_name, string instance_id | |behavior | set instance qps_limit for specific RPC | |example|```ccurl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?qps_limit=5000000&rpc_name=get_cluster&instance_id="doris-0"```| | Entry | Description | | ----------- | ----------- | | param | uint64 qps_limit, string instance_id | |behavior | set global qps_limit for specific instance | |example|```curl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?qps_limit=5000000&instance_id="doris-0"```| 2. query limit | Entry | Description | | ----------- | ----------- | | param | none | |behavior | query qps limit for all RPC interface | |example|```curl http://ms_ip:ms_port/MetaService/http/v1/list_rate_limit```|
…on meta service (#42413) ## Proposed changes Usage 1. adjust limit ``` curl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?${params} ``` | Entry | Description | | ----------- | ----------- | | param | uint64 qps_limit | |behavior | set qps_limit global default value | |example|```curl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?qps_limit=5000000```| | Entry | Description | | ----------- | ----------- | | param | uint64 qps_limit, string rpc_name | |behavior | set RPC specific qps_limit | |example|curl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?qps_limit=5000000&rpc_name=get_cluster| | Entry | Description | | ----------- | ----------- | | param | uint64 qps_limit, string rpc_name, string instance_id | |behavior | set instance qps_limit for specific RPC | |example|```ccurl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?qps_limit=5000000&rpc_name=get_cluster&instance_id="doris-0"```| | Entry | Description | | ----------- | ----------- | | param | uint64 qps_limit, string instance_id | |behavior | set global qps_limit for specific instance | |example|```curl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?qps_limit=5000000&instance_id="doris-0"```| 2. query limit | Entry | Description | | ----------- | ----------- | | param | none | |behavior | query qps limit for all RPC interface | |example|```curl http://ms_ip:ms_port/MetaService/http/v1/list_rate_limit```|
…on meta service (apache#42413) ## Proposed changes Usage 1. adjust limit ``` curl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?${params} ``` | Entry | Description | | ----------- | ----------- | | param | uint64 qps_limit | |behavior | set qps_limit global default value | |example|```curl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?qps_limit=5000000```| | Entry | Description | | ----------- | ----------- | | param | uint64 qps_limit, string rpc_name | |behavior | set RPC specific qps_limit | |example|curl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?qps_limit=5000000&rpc_name=get_cluster| | Entry | Description | | ----------- | ----------- | | param | uint64 qps_limit, string rpc_name, string instance_id | |behavior | set instance qps_limit for specific RPC | |example|```ccurl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?qps_limit=5000000&rpc_name=get_cluster&instance_id="doris-0"```| | Entry | Description | | ----------- | ----------- | | param | uint64 qps_limit, string instance_id | |behavior | set global qps_limit for specific instance | |example|```curl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?qps_limit=5000000&instance_id="doris-0"```| 2. query limit | Entry | Description | | ----------- | ----------- | | param | none | |behavior | query qps limit for all RPC interface | |example|```curl http://ms_ip:ms_port/MetaService/http/v1/list_rate_limit```|
…ng (apache#44362) UT failed with coredump in PR apache#42413 but was not detected by CI. Fix the problem.
Proposed changes
Usage
curl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?qps_limit=5000000ccurl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?qps_limit=5000000&rpc_name=get_cluster&instance_id="doris-0"curl http://ms_ip:ms_port/MetaService/http/v1/adjust_rate_limit?qps_limit=5000000&instance_id="doris-0"curl http://ms_ip:ms_port/MetaService/http/v1/list_rate_limit