From 3bf1b4ebba41f176dd9c7fa0966ff853b728cd85 Mon Sep 17 00:00:00 2001 From: Yonle Date: Fri, 10 May 2024 14:59:00 +0700 Subject: [PATCH] defaultconf: run with single clusters as it already running in 2 threads --- config.js.example | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config.js.example b/config.js.example index 4f00ee3..98089ce 100644 --- a/config.js.example +++ b/config.js.example @@ -16,8 +16,7 @@ module.exports = { ticketKey: "" }, - // Clusters. - // 0 will make bostr run clusters with available parallelism / CPU cores. + // Clusters (default: 1) // // Every single clusters has additional 1 running worker, // Which making bostr running at 2 threads by default. @@ -25,8 +24,8 @@ module.exports = { // You may increase this value if: // - You want to use more threads/cores in your server // - You got heavy traffics / many clients - // By default, 0 (auto) will determine based of how many parallelism / cores available in the system. - clusters: 0, + // 0 (auto) will determine based of how many parallelism / cores available in the system. + clusters: 1, // Numbers of idle sessions to be created // Default: 1