doc: ulimit recommendations for local development (#6311)

The default ulimit for open files on macOS is really small (256),
which leads to "too many open files" errors during plugin launches if
you're running unit tests in `drivers/docker`. Recommend setting
`ulimit -n 1024`.
This commit is contained in:
Tim Gross
2019-09-11 14:53:03 -04:00
committed by GitHub
parent 232295f83f
commit c9f7656489

View File

@@ -173,6 +173,12 @@ $ make bootstrap
...
```
Nomad creates many file handles for communicating with tasks, log handlers, etc.
In some development environments, particularly macOS, the default number of file
descriptors is too small to run Nomad's test suite. You should set
`ulimit -n 1024` or higher in your shell. This setting is scoped to your current
shell and doesn't affect other running shells or future shells.
Afterwards type `make test`. This will run the tests. If this exits with exit status 0,
then everything is working!