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

[Enhancement] refactor allin1 image #28240

Merged
merged 6 commits into from
Jul 31, 2023
Merged

Conversation

kevincai
Copy link
Contributor

@kevincai kevincai commented Jul 29, 2023

  • add supervisor and nginx into allin1
  • add broker into allin1
  • robust register BE BROKER into FE
  • be able to use stream load directly talking to nginx http port

Fixes #13319

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr will affect users' behaviors
  • This pr needs user documentation (for new or modified features or behaviors)
    • I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

  • I have checked the version labels which the pr will be auto-backported to the target branch
    • 3.1
    • 3.0
    • 2.5
    • 2.4

@github-actions github-actions bot added the 3.1 label Jul 29, 2023
@kevincai kevincai force-pushed the allin1-enhancement branch from 15fbead to 93c3d7c Compare July 29, 2023 05:02
imay
imay previously approved these changes Jul 29, 2023
Copy link
Contributor

@imay imay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful job, how much additional volume are added to the image size after this change?

@kevincai
Copy link
Contributor Author

about 450MB fs_broker size, I guess around 100-200MB additional storage after compress.

@kevincai kevincai force-pushed the allin1-enhancement branch from b91332c to 5605444 Compare July 30, 2023 03:55
loginfo "check if need to add BE into FE service ..."
while true
do
result=`exec_sql_with_retry "SHOW BACKENDS;"`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

result can be possibly mixtured with error messages, need fix it here.

imay
imay previously approved these changes Jul 30, 2023
@kevincai kevincai force-pushed the allin1-enhancement branch 3 times, most recently from bbdec9c to 1502fa1 Compare July 31, 2023 03:44
kevincai added 5 commits July 31, 2023 14:37
* add supervisor and nginx into allin1
* add broker into allin1
* robust register BE BROKER into FE

Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
* support aarch platform as well

Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
RUN yum install -y java-1.8.0-openjdk-devel tzdata openssl curl vim ca-certificates fontconfig gzip tar less hostname procps-ng lsof && \
rpm -ivh https://repo.mysql.com/mysql57-community-release-el7.rpm && \
RUN yum install -y java-1.8.0-openjdk-devel tzdata openssl curl vim ca-certificates fontconfig gzip tar less hostname procps-ng lsof python3-pip nginx nc && \
rpm -ivh https://repo.mysql.com//mysql80-community-release-el8-7.noarch.rpm && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two slash

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -28,9 +28,9 @@ FROM registry.access.redhat.com/ubi8/ubi:8.7
ARG STARROCKS_ROOT=/opt/starrocks

RUN yum install -y java-1.8.0-openjdk-devel tzdata openssl curl vim ca-certificates fontconfig gzip tar less hostname procps-ng lsof && \
rpm -ivh https://repo.mysql.com/mysql57-community-release-el7.rpm && \
rpm -ivh https://repo.mysql.com//mysql80-community-release-el8-7.noarch.rpm && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double slash

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -28,9 +28,9 @@ FROM registry.access.redhat.com/ubi8/ubi:8.7
ARG STARROCKS_ROOT=/opt/starrocks

RUN yum install -y java-1.8.0-openjdk-devel tzdata openssl curl vim ca-certificates fontconfig gzip tar less hostname procps-ng lsof && \
rpm -ivh https://repo.mysql.com/mysql57-community-release-el7.rpm && \
rpm -ivh https://repo.mysql.com//mysql80-community-release-el8-7.noarch.rpm && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double slash

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

loginfo
loginfo "Enjoy the journal to StarRocks blazing-fast lake-house engine!"

while true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this while loop is used to make run.sh run as a service, to avoid to exit?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
@kevincai kevincai force-pushed the allin1-enhancement branch from 1502fa1 to 1eb0f84 Compare July 31, 2023 07:01
@wanpengfei-git
Copy link
Collaborator

[FE PR Coverage Check]

😍 pass : 0 / 0 (0%)

@wyb wyb merged commit 011bf17 into StarRocks:main Jul 31, 2023
@wanpengfei-git
Copy link
Collaborator

@Mergifyio backport branch-3.1

@github-actions github-actions bot removed the 3.1 label Jul 31, 2023
@wanpengfei-git
Copy link
Collaborator

@Mergifyio backport branch-3.0

@github-actions github-actions bot removed the 3.0 label Jul 31, 2023
@wanpengfei-git
Copy link
Collaborator

@Mergifyio backport branch-2.5

@github-actions github-actions bot removed the 2.5 label Jul 31, 2023
@mergify
Copy link
Contributor

mergify bot commented Jul 31, 2023

backport branch-3.1

✅ Backports have been created

@mergify
Copy link
Contributor

mergify bot commented Jul 31, 2023

backport branch-3.0

✅ Backports have been created

@mergify
Copy link
Contributor

mergify bot commented Jul 31, 2023

backport branch-2.5

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jul 31, 2023
* add supervisor and nginx into allin1
* add broker into allin1
* robust register BE BROKER into FE
* be able to use stream load directly talking to nginx http port

Fixes #13319

Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
(cherry picked from commit 011bf17)
mergify bot pushed a commit that referenced this pull request Jul 31, 2023
* add supervisor and nginx into allin1
* add broker into allin1
* robust register BE BROKER into FE
* be able to use stream load directly talking to nginx http port

Fixes #13319

Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
(cherry picked from commit 011bf17)
mergify bot pushed a commit that referenced this pull request Jul 31, 2023
* add supervisor and nginx into allin1
* add broker into allin1
* robust register BE BROKER into FE
* be able to use stream load directly talking to nginx http port

Fixes #13319

Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
(cherry picked from commit 011bf17)

# Conflicts:
#	.dockerignore
wanpengfei-git pushed a commit that referenced this pull request Jul 31, 2023
* add supervisor and nginx into allin1
* add broker into allin1
* robust register BE BROKER into FE
* be able to use stream load directly talking to nginx http port

Fixes #13319

Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
(cherry picked from commit 011bf17)
wanpengfei-git pushed a commit that referenced this pull request Jul 31, 2023
* add supervisor and nginx into allin1
* add broker into allin1
* robust register BE BROKER into FE
* be able to use stream load directly talking to nginx http port

Fixes #13319

Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
(cherry picked from commit 011bf17)
wyb pushed a commit that referenced this pull request Aug 1, 2023
* add supervisor and nginx into allin1
* add broker into allin1
* robust register BE BROKER into FE
* be able to use stream load directly talking to nginx http port

Fixes #13319


(cherry picked from commit 011bf17)

Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
@kevincai kevincai deleted the allin1-enhancement branch August 4, 2023 14:21
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.

Stream load Parquet file
6 participants