docs(deploy): add node cluster mode (#7089)

Co-authored-by: Pooya Parsa <pooya@pi0.io>
This commit is contained in:
Mastercuber 2022-09-05 12:54:08 +02:00 committed by GitHub
parent 9249e5e7a6
commit fb179caa38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"}