FreeOnePlus opened a new pull request, #45269:
URL: https://github.com/apache/doris/pull/45269
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #45267
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 parameter
`--skip` to the `start_be.sh` script, which will skip the size checks for
`swap`, `ulimit`, and `max_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 the `init_be.sh` script: if it is the first time starting, append the
configuration item `skip_check_ulimit = true` to the `be.conf` file to skip the
`ulimit` 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)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [x] 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 <!-- Add your reason? -->
1. Set the `ulimit`, `swap`, and `max_map_count` check values on the host
machine to values that do not meet the requirements.
2. Run `sh start_be.sh --skip` to start the BE process, which starts up
normally.
3. Using the `--daemon` or `--console` option to start, the BE process fails
to start normally.
- Behavior changed:
- [x] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [x] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [x] Confirm the release note
- [x] Confirm test cases
- [x] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]