perf: reduce the worker_threads pool size in hybrid examples
[poolifier.git] / examples / typescript / websocket-server-pool / ws-hybrid / src / main.ts
index 62e772da7bf34d4f808ef56e037f814dea16fc46..b9e48bdd2ee194abf47d6d1b69eddd3dc134100d 100644 (file)
@@ -21,7 +21,7 @@ const pool = new FixedClusterPool<ClusterWorkerData, ClusterWorkerResponse>(
       pool
         .execute({
           port: 8080,
-          maxWorkers: Math.round(availableParallelism() / 2),
+          maxWorkers: Math.round(availableParallelism() / 4),
           workerFile: requestHandlerWorkerFile,
           enableTasksQueue: true,
           tasksQueueOptions: {