-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[enhance](meta-service) add real request ip for be rpc #53114
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 |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
FE UT Coverage ReportIncrement line coverage `` 🎉 |
TPC-H: Total hot run time: 33139 ms |
TPC-DS: Total hot run time: 187412 ms |
| static_assert(std::is_base_of_v<::google::protobuf::Message, Request>); | ||
| static_assert(std::is_base_of_v<::google::protobuf::Message, Response>); | ||
|
|
||
| const_cast<Request&>(req).set_request_ip(BackendOptions::get_be_endpoint()); |
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.
what about BackendOptions::get_local_backend()
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.
get_local_backend return a TBackend, get_be_endpoint returned ‘local_host+heartbeat’ is sufficient to determine which be it is.
ClickBench: Total hot run time: 29.64 s |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
FE UT Coverage ReportIncrement line coverage `` 🎉 |
TPC-H: Total hot run time: 33385 ms |
TPC-DS: Total hot run time: 187288 ms |
ClickBench: Total hot run time: 30.37 s |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
|
run vault_p0 |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
What problem does this PR solve?
Currently, when sending an RPC request to MS, it may go through LB. At this point, MS begins RPC output with LB's IP, which makes it difficult for us to know where the RPC request actually came from, making troubleshooting difficult. Now, add a request IP field to all requests and set it when sending RPC from BE. This way, even if it goes through LB, we can still obtain the original BE IP data.