diff options
author | cornholio <0@mcornholio.ru> | 2017-07-10 22:24:49 +0300 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2017-07-14 19:13:13 -0400 |
commit | b4300536f5e77561137259105814e3a6c5d5121b (patch) | |
tree | cd78bb324b07142ca26b1164ddb0542d8fec6eec /doc/api/cluster.md | |
parent | 592b0ed431cb4c4a1d6902bb8c68c112e0e61309 (diff) | |
download | node-new-b4300536f5e77561137259105814e3a6c5d5121b.tar.gz |
cluster: overriding inspector port
Added an option to override inspector port for workers using
`settings.inspectPort` will override default port incrementing behavior.
Also, using this option allows to set 0 port for the whole cluster.
PR-URL: https://github.com/nodejs/node/pull/14140
Fixes: https://github.com/nodejs/node/issues/8495
Fixes: https://github.com/nodejs/node/issues/12941
Refs: https://github.com/nodejs/node/pull/9659
Refs: https://github.com/nodejs/node/pull/13761
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc/api/cluster.md')
-rw-r--r-- | doc/api/cluster.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/api/cluster.md b/doc/api/cluster.md index 85c3f2deb9..4f94bc87e5 100644 --- a/doc/api/cluster.md +++ b/doc/api/cluster.md @@ -712,6 +712,9 @@ changes: `'ipc'` entry. When this option is provided, it overrides `silent`. * `uid` {number} Sets the user identity of the process. (See setuid(2).) * `gid` {number} Sets the group identity of the process. (See setgid(2).) + * `inspectPort` {number|function} Sets inspector port of worker. + Accepts number, or function that evaluates to number. By default + each worker gets port, incremented from master's `process.debugPort`. After calling `.setupMaster()` (or `.fork()`) this settings object will contain the settings, including the default values. |