From fb179caa38a140a95b5f6fdf54cd696549e04e70 Mon Sep 17 00:00:00 2001 From: Mastercuber Date: Mon, 5 Sep 2022 12:54:08 +0200 Subject: [PATCH] docs(deploy): add node cluster mode (#7089) Co-authored-by: Pooya Parsa --- docs/content/2.guide/5.deploy/1.node-server.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/content/2.guide/5.deploy/1.node-server.md b/docs/content/2.guide/5.deploy/1.node-server.md index 72a8e450ad..bfedf7f407 100644 --- a/docs/content/2.guide/5.deploy/1.node-server.md +++ b/docs/content/2.guide/5.deploy/1.node-server.md @@ -49,6 +49,12 @@ module.exports = { } ``` +### Using Cluster Mode + +You can use `NITRO_PRESET=node_cluster` in order to leverage multi-process performance using Node.js [cluster](https://nodejs.org/dist/latest/docs/api/cluster.html) module. + +By default, the workload gets distributed to the workers with the round robin strategy. + ## Learn More :ReadMore{link="https://nitro.unjs.io/deploy/node" title="the Nitro documentation for node-server preset"}