Skip to content

Commit

Permalink
add skip_check_ulimit config
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeOnePlus committed Dec 12, 2024
1 parent c37ec4d commit a353fe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions bin/start_be.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ OPTS="$(getopt \
-l 'console' \
-l 'version' \
-l 'benchmark' \
-l 'skip_check_ulimit' \
-- "$@")"

eval set -- "${OPTS}"
Expand Down Expand Up @@ -62,11 +61,6 @@ while true; do
RUN_BENCHMARK=1
shift
;;
--skip_check_ulimit)
RUN_SKIP_CHECK_ULIMIT=1
RUN_CONSOLE=1
shift
;;
--)
shift
break
Expand Down Expand Up @@ -189,7 +183,7 @@ if [[ "${RUN_VERSION}" -eq 1 ]]; then
exit 0
fi

if [[ "${RUN_SKIP_CHECK_ULIMIT}" -eq 0 ]]; then
if [[ "${SKIP_CHECK_ULIMIT}" != "true" ]]; then
if [[ "$(uname -s)" != 'Darwin' ]]; then
MAX_MAP_COUNT="$(cat /proc/sys/vm/max_map_count)"
if [[ "${MAX_MAP_COUNT}" -lt 2000000 ]]; then
Expand Down
2 changes: 1 addition & 1 deletion docker/runtime/be/resource/init_be.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ _main() {
check_be_status
doris_note "Ready to start BE!"
export SKIP_CHECK_ULIMIT=true
${DORIS_HOME}/be/bin/start_be.sh --skip_check_ulimit &
${DORIS_HOME}/be/bin/start_be.sh --console &
child_pid=$!
wait $child_pid
exec "$@"
Expand Down

0 comments on commit a353fe3

Please sign in to comment.