Skip to content

Commit 8cae573

Browse files
pimlieMylesBorins
authored andcommitted
doc: add note about using cluster without networking
Although the primary use-case for the cluster module is networking, the module provides a generic master/worker interface that could also be used if you dont use networking at all. Currently the docs are a bit ambiguous about this as only the primary use-case is ever mentioned, this remark should clarify that the cluster module can also be used without disadvantages if you dont use networking. PR-URL: #17031 Refs: nodejs/help#970 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent b16e6d2 commit 8cae573

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/cluster.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ will be dropped and new connections will be refused. Node.js does not
112112
automatically manage the number of workers for you, however. It is your
113113
responsibility to manage the worker pool for your application's needs.
114114

115-
115+
Although a primary use case for the `cluster` module is networking, it can
116+
also be used for other use cases requiring worker processes.
116117

117118
## Class: Worker
118119
<!-- YAML

0 commit comments

Comments
 (0)