-
Notifications
You must be signed in to change notification settings - Fork 399
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
[#2886] improvement(ci): optimize Docker container to suite CI framework #2887
Conversation
dev/docker/doris/start.sh
Outdated
@@ -37,6 +36,7 @@ PRIORITY_NETWORKS=$(echo "${CONTAINER_IP}" | awk -F '.' '{print$1"."$2"."$3".0/2 | |||
echo "add priority_networks = ${PRIORITY_NETWORKS} to fe.conf & be.conf" | |||
echo "priority_networks = ${PRIORITY_NETWORKS}" >> ${DORIS_FE_HOME}/conf/fe.conf | |||
echo "priority_networks = ${PRIORITY_NETWORKS}" >> ${DORIS_BE_HOME}/conf/be.conf | |||
echo "disable_storage_medium_check = true" >> ${DORIS_FE_HOME}/conf/fe.conf |
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.
Will this configuration prevent the check for left storage when starting?
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.
This config is not to check storage space. This config si check storage medium to store cold data.
If disable_storage_medium_check is true, ReportHandler would not check tablet's storage medium and disable storage cool down function, the default value is false. You can set the value true when you don't care what the storage medium of the tablet is.
When we have SSD and HDD on same machine, this check is helpful.
When we use in CI, this config may cause BE refuse request, and finally make create table
failed probabilistic (when the container has just been started)
I am still checking it in CI
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.
After test, I think we don't need to change config disable_storage_medium_check
.
BUT we need to set report_disk_state_interval_seconds
to 10 seconds, this config allows the BE to report storage information faster after startup. This can prevent DorisTableIT from failing.
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.
LGTM
9ed2d83
to
3cd9898
Compare
@zhoukangcn |
OK,I can do it later |
3cd9898
to
9d798fb
Compare
9d798fb
to
d729a3e
Compare
@yuqi1129 done. Please take a look when you have time. |
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.
LGTM
What changes were proposed in this pull request?
Why are the changes needed?
Fix: #2886
Does this PR introduce any user-facing change?
N/A
How was this patch tested?
CI