From fe6b77d67d98418b049d148db45246382653c6f3 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Fri, 10 Jan 2025 09:02:43 +0700 Subject: [PATCH] [core] Use UV_THREADPOOL_SIZE as cpu*1 --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 2499827a..1da7dfef 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,7 +2,7 @@ # Calculate UV_THREADPOOL_SIZE based on number of CPUs cpus=$(node -e "const os = require('os'); console.log(os.cpus().length);") -uv_threadpool_size=$(($cpus * 2)) +uv_threadpool_size=$(($cpus * 1)) # Set UV_THREADPOOL_SIZE as an environment variable export UV_THREADPOOL_SIZE="${UV_THREADPOOL_SIZE:-$uv_threadpool_size}"