Repository navigation
Support preload modules in Nanny - #3678
Conversation
jrbourbeau
left a comment
There was a problem hiding this comment.
Thanks @mrocklin, the changes here generally LGTM. Left a few small comments/questions
| # TODO: it is unfortunate that we special-case inproc here | ||
| if not host and not interface and not scheduler_addr.startswith("inproc://"): | ||
| host = get_ip(get_address_host(scheduler_addr)) | ||
| host = get_ip(get_address_host(scheduler_addr.split("://")[-1])) |
There was a problem hiding this comment.
It's not entirely related. I was testing this with another workload and ran into a small bug here.
| @click.option( | ||
| "--preload-nanny", | ||
| type=str, | ||
| multiple=True, | ||
| is_eager=True, | ||
| help="Module that should be loaded by each nanny " | ||
| 'like "foo.bar" or "/path/to/foo.py"', | ||
| ) |
There was a problem hiding this comment.
Currently preload_nanny_argv can't be specified on the command line. Do you have any thoughts on how we could support a --preload-nanny-argv CLI option? To be clear, I suspect this may be difficult with our current click setup and don't think the lack of a --preload-nanny-argv option should stop us from merging this PR
There was a problem hiding this comment.
Yeah, I wasn't sure how to pass things through from click. My sense is that we probably have to point users to the configuration to handle this.
I've added dask/dask#6077 to help with documentation here.
Co-Authored-By: James Bourbeau <[email protected]>
Include notes on configuration, types of inputs, and nannies Accompanies dask/distributed#3678
| terminate: 0.95 # fraction at which we terminate the worker | ||
|
|
||
| nanny: | ||
| preload: [] |
There was a problem hiding this comment.
Most entries have a comment describing them
There was a problem hiding this comment.
Thanks for flagging this.
I've gone ahead and added brief comments that mostly just point to documentation (I don't think that we can reasonably describe this in one line). Ben and I are planning to play with larger descriptions for documentation later this week though.
jrbourbeau
left a comment
There was a problem hiding this comment.
Thanks @mrocklin, the changes here LGTM
Include notes on configuration, types of inputs, and nannies Accompanies dask/distributed#3678
Today we can run preload modules on workers or the scheduler, but not on the Nanny.
Now we can also run preload scripts on the nanny