Skip to content

Commit

Permalink
docs: add usage of startMode (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyj1991 committed Nov 3, 2022
1 parent 39715ae commit 5a656e4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -61,6 +61,8 @@ startCluster(options, () => {
| https | `Object` | start a https server, note: `key` / `cert` / `ca` should be full path to file |
| require | `Array\|String` | will inject into worker/agent process |
| pidFile | `String` | will save master pid to this file |
| startMode | `String` | default is 'process', use 'worker_threads' to start the app & agent worker by worker_threads |
| ports | `Array` | startup port of each app worker, such as: [7001, 7002, 7003], only effects when the startMode is 'worker_threads' |

## Env

Expand Down
Binary file removed test/.DS_Store
Binary file not shown.
Binary file removed test/fixtures/.DS_Store
Binary file not shown.

0 comments on commit 5a656e4

Please sign in to comment.