-
Notifications
You must be signed in to change notification settings - Fork 3.7k
branch-3.1: [feature](stream-load) support stream load endpoint redirect policy #53104 #53208
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…53104) ### What problem does this PR solve? Issue Number: close #xxx Related PR: #42881 Problem Summary: Supports flexible endpoint configuration for Stream Load operations, allowing you to control how load requests are redirected. ## BE Support multiple addresses Each Doris BE node now supports three types of addresses: - `be_host`: used for internal communication within the Doris cluster. - `public_endpoint`: used for external public access. - `private_endpoint`: used for external private access. All three addresses can be selected as the target for Stream Load operations. ## Redirect Policies When sending Stream Load requests, you can specify a redirect policy using the `redirect-policy` header. Available policies are: - `direct`: Redirects to the backend's host. - `public`: Redirects to the public endpoint of the backend. - `private`: Redirects to the private endpoint of the backend. - `""` (empty/default): If request host equals to backend's public endpoint, redirects to the public endpoint. If private endpoint of backend is set, redirects to the private endpoint. Otherwise, redirects to the backend's host. ## Configuration Methods ```sql -- Add/Modify BE with custom endpoints ALTER SYSTEM ADD BACKEND 'be_host1:heartbeat_port1', 'be_host2:heartbeat_port2' properties( 'tag.public_endpoint' = '11.10.10.10:8010', 'tag.private_endpoint' = '10.10.10.9:8020' ); ALTER SYSTEM MODIFY BACKEND 'be_host1:heartbeat_port1', 'be_host2:heartbeat_port2' SET ( 'tag.public_endpoint' = '11.10.10.10:8010', 'tag.private_endpoint' = '10.10.10.9:8020' ); ```
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
TPC-H: Total hot run time: 39956 ms |
TPC-DS: Total hot run time: 197959 ms |
ClickBench: Total hot run time: 32.23 s |
morrySnow
approved these changes
Jul 15, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cherry-picked from #53104