Cannot allocate enough workers ("Too many open files") #6988
-
Hi all. I want to use processes (not threads) in dask, and am trying to allocate as many workers as I have CPUS. But I have run into a "Too many open files..." error. I see this kind of error has been raised on StackOverflow, but here I have not even started to submit any work yet. Is this a bug or a limitation, or do I just not understand something?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The default number of files/connections on macOS is quite low (I think it's something like ~128). I recommend increasing that limit by, for example, doing something like ulimit -n 5000 in your terminal before launching you Python REPL See https://distributed.dask.org/en/stable/faq.html#too-many-open-file-descriptors for more details. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the speedy reply. That fixes it. |
Beta Was this translation helpful? Give feedback.
The default number of files/connections on macOS is quite low (I think it's something like ~128). I recommend increasing that limit by, for example, doing something like
ulimit -n 5000
in your terminal before launching you Python REPL
See https://distributed.dask.org/en/stable/faq.html#too-many-open-file-descriptors for more details.