From 42019644f07474c97ffb2843d750b796524235a6 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Fri, 25 Jul 2025 11:36:45 +0700 Subject: [PATCH] [core] cpus*2 for UV_THREADPOOL_SIZE --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 98b7e7ea..09e75103 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,7 +10,7 @@ cpus=$(node -e "const os = require('os'); console.log(os.cpus().length);" 2>/dev case $cpus in ''|*[!0-9]*) cpus=1 ;; esac -uv_threadpool_size=$(($cpus * 1)) +uv_threadpool_size=$(($cpus * 2)) # Check if uv_threadpool_size is less than 4 (default), set it to 4 if it is if [ "$uv_threadpool_size" -lt 4 ]; then