mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
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:
@@ -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!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user