[feat](docker)Modify the init_be and start_be scripts to meet the requirements for rapid Docker startup(Merge 2.1). #45858
+20
−18
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.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #45267
Master PR: #45269
Problem Summary:
To meet the needs of rapid Docker startup, I have made adjustments to two related scripts in the Docker startup process. First, I added a env
SKIP_CHECK_ULIMIT
to thestart_be.sh
script, which will skip the size checks forswap
,ulimit
, andmax_map_count
. At the same time, I used--console
to start the process and print logs. The reason why I did not use the--daemon
daemon command to execute is that starting with a foreground log printing method in a Docker container is the correct and reliable approach.At the same time, I added a check logic for a
be.conf
configuration item in theinit_be.sh
script: if it is the first time starting, append the exportSKIP_CHECK_ULIMIT=true
to skip theulimit
value check in the BE process. In summary, these adjustments can meet the basic requirements for rapid Docker startup usage.Release note
None
Check List (For Author)
ulimit
,swap
, andmax_map_count
check values on the host machine to values that do not meet the requirements.export SKIP_CHECK_ULIMIT=true
andsh start_be.sh --console
to start the BE process, which starts up normally.export SKIP_CHECK_ULIMIT=false
,then using the--daemon
or--console
option to start, the BE process fails to start normally.Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)