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

[feat](doris compose) Add host mode for add remote fe #48839

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

yujun777
Copy link
Collaborator

@yujun777 yujun777 commented Mar 9, 2025

What problem does this PR solve?

Add network host mode, in this mode container will use host ip and host ports. These ports are auto-pick, no need user to specify. Then remote fe can join into the cluster.

But for simple reason, the host mode need to add a remote fe. We add an option --remote-master-fe(the remote fe address: ip:query_port). When user creating a new cluster, if special this option, the cluster will use host mode.

example:

for non-cloud mode:

below cluster contain 1 remote fe, 3 be in local docker container.

1

for cloud mode, the creating a new cluster include four steps:

  1. doris-compose generate local docker node, and print info about the cloud config and waitting for step 3;
  2. user add the cloud config to remote fe's fe.conf;
  3. user start the remote fe from beginning (clear history doris-meta );
  4. after user confirm, doris-composy will continue to add be to the cloud.

1

the cloud cluster will contains:

1

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@hello-stephen
Copy link
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@yujun777 yujun777 changed the title [feat](doris compose) Add host mode for add remote machine fe [feat](doris compose) Add host mode for add remote fe Mar 9, 2025
@yujun777
Copy link
Collaborator Author

yujun777 commented Mar 9, 2025

run buildall

1 similar comment
@yujun777
Copy link
Collaborator Author

yujun777 commented Mar 9, 2025

run buildall

@yujun777 yujun777 force-pushed the doris-compose-remote-master-fe branch from cdd4d9b to 87a1280 Compare March 9, 2025 14:24
@yujun777
Copy link
Collaborator Author

yujun777 commented Mar 9, 2025

run buildall

1 similar comment
@yujun777
Copy link
Collaborator Author

yujun777 commented Mar 9, 2025

run buildall

@yujun777 yujun777 force-pushed the doris-compose-remote-master-fe branch from 40ee561 to b43560d Compare March 9, 2025 15:06
@yujun777
Copy link
Collaborator Author

yujun777 commented Mar 9, 2025

run buildall

@yujun777 yujun777 force-pushed the doris-compose-remote-master-fe branch from b43560d to 3f932cc Compare March 9, 2025 15:21
@yujun777
Copy link
Collaborator Author

yujun777 commented Mar 9, 2025

run buildall

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

Successfully merging this pull request may close these issues.

2 participants