Skip to content

Commit

Permalink
branch-2.1: [feat](docker)Add a BE ENV item 'SKIP_CHECK_ULIMIT' for D…
Browse files Browse the repository at this point in the history
…ocker to start quickly #45267 (#45468)

Cherry-picked from #45267

Co-authored-by: FreeOnePlus <[email protected]>
  • Loading branch information
github-actions[bot] and FreeOnePlus authored Dec 19, 2024
1 parent afeb586 commit eb67db3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions be/src/olap/storage_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,16 @@ Status StorageEngine::_check_file_descriptor_number() {
<< ", use default configuration instead.";
return Status::OK();
}
if (getenv("SKIP_CHECK_ULIMIT") == nullptr) {
LOG(INFO) << "will check 'ulimit' value.";
} else if (std::string(getenv("SKIP_CHECK_ULIMIT")) == "true") {
LOG(INFO) << "the 'ulimit' value check is skipped"
<< ", the SKIP_CHECK_ULIMIT env value is " << getenv("SKIP_CHECK_ULIMIT");
return Status::OK();
} else {
LOG(INFO) << "the SKIP_CHECK_ULIMIT env value is " << getenv("SKIP_CHECK_ULIMIT")
<< ", will check ulimit value.";
}
if (l.rlim_cur < config::min_file_descriptor_number) {
LOG(ERROR) << "File descriptor number is less than " << config::min_file_descriptor_number
<< ". Please use (ulimit -n) to set a value equal or greater than "
Expand Down

0 comments on commit eb67db3

Please sign in to comment.