teseladb dev
How to use teseladb dev, with its options and its examples.
Usage
teseladb dev [--nodes <n>] [--cores <n>] [--port <n>] [--setParameter enableTestCommands=1]Description
Starts several nodes in a single process to develop and test. Node k listens on the client port plus k and prints one ready line per node.
Options
| Option | Default | Description |
|---|---|---|
--nodes | Number of nodes dev starts. | |
--cores | the logical cores | Number of cores, the same on every node. |
--port | 27017 | Client port. With 0, the system picks one. In dev, node k listens on this port plus k. |
--setParameter | Sets a server parameter in the name=value form. |
Examples
Three nodes on your machine
Shell
teseladb dev --nodes 3Exit codes
0The command finished correctly.1The command failed while running; the error says why.2The command was written wrongly, with an argument missing or an unknown option.