-
Notifications
You must be signed in to change notification settings - Fork 3.7k
branch-3.0: [feature](meta-service) Support querying and adjusting rpc qps limit on meta service #42413 #43884
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
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
…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```|
1e73ffe to
07f5b95
Compare
|
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
|
|
||
| #pragma once | ||
|
|
||
| #include <brpc/server.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: 'brpc/server.h' file not found [clang-diagnostic-error]
#include <brpc/server.h>
^| // specific language governing permissions and limitations | ||
| // under the License. | ||
|
|
||
| #include "rate-limiter/rate_limiter.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: 'rate-limiter/rate_limiter.h' file not found [clang-diagnostic-error]
#include "rate-limiter/rate_limiter.h"
^
Cherry-picked from #42413