Skip to content

Change heading level of UCX and RMM config reference sections - #7579

Closed
charlesbluca wants to merge 1 commit into
dask:mainfrom
charlesbluca:update-ucx-rmm-ref
Closed

charlesbluca wants to merge 1 commit into
dask:mainfrom
charlesbluca:update-ucx-rmm-ref

Conversation

@charlesbluca

Copy link
Copy Markdown
Member

Changes the heading levels of the UCX and RMM config reference sections to be the same as that of the Dask or Distributed sections, to reflect the fact that these are not Distributed-specific configurations. This would also force the config reference page to be rebuilt to reflect the changes of dask/distributed#4683.

  • Tests added / passed
  • Passes black dask / flake8 dask / isort dask

@jrbourbeau jrbourbeau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @charlesbluca. From a config namespace perspective this seems reasonable. Though I'm surprised the ucx and rmm config values aren't prefixed with distributed.. Do you know if these config values are used anywhere outside of distributed? cc @quasiben

@charlesbluca

Copy link
Copy Markdown
Member Author

Glancing through the other Dask repos, it doesn't look like it - in that case, it might make more sense to prefix UCX and RMM variables with distributed., though that will probably require some level of coordination with dask-cuda (and maybe some other RAPIDS repos) to make sure it doesn't break anything. @pentschev does this change to the configuring variables sound reasonable to you?

@jrbourbeau

Copy link
Copy Markdown
Member

FWIW distributed has the ability to rename configuration value names which should help smooth any ucx -> distributed.ucx transition we may make

@charlesbluca

Copy link
Copy Markdown
Member Author

Great! In that case, depending on @quasiben and @pentschev's thoughts, I may close this PR and prefix the variables, adding aliases to remap the old ones.

@pentschev

Copy link
Copy Markdown
Member

Either way is fine by me. TBH, I always wondered why UCX configs weren't prefixed with distributed, but it seems like this is how it should be. I know that there's a lot of scripts that currently rely on DASK_UCX_...* so it would be awesome if we could do a deprecation cycle to allow people to adjust.

@charlesbluca

Copy link
Copy Markdown
Member Author

I'm interested in if the aliases only account for variables set in the YAML file, or if they would also apply to the environment variables.

@jrbourbeau

Copy link
Copy Markdown
Member

I think it should apply to all ways in which the Dask configuration system can be set. For example, with the following diff for distributed

diff --git a/distributed/config.py b/distributed/config.py
index 4b1cfb35..bebc0560 100644
--- a/distributed/config.py
+++ b/distributed/config.py
@@ -48,6 +48,7 @@ aliases = {
     "log-length": "distributed.admin.log-length",
     "log-format": "distributed.admin.log-format",
     "pdb-on-err": "distributed.admin.pdb-on-err",
+    "ucx": "distributed.ucx",
 }

 dask.config.rename(aliases)

I get the following when I set DASK_UCX__TCP=foo

(distributed) ➜  distributed git:(main) ✗ DASK_UCX__TCP=foo python -c "import dask; import distributed; print(dask.config.get('distributed.ucx.tcp'))"
foo

Does dask-cuda or anything else in the RAPIDS stack set the ucx / rmm config values? If so that will probably require more care. I don't think the current renaming infrastructure sets up long-lived name aliases

@pentschev

Copy link
Copy Markdown
Member

Dask-CUDA does set it, but it's mostly (or entirely) centralized in https://github.com/rapidsai/dask-cuda/blob/81cd211d4824beaebbc789119056e6f451ef5458/dask_cuda/utils.py#L221-L257 , so adjusting that is a simple task. My request on the aliasing comes mostly from scripts where people currently use DASK_UCX__* environment variables, and possibly the distributed configs within Python scripts too.

@charlesbluca

Copy link
Copy Markdown
Member Author

@pentschev would it be feasible to also put the alias handling in dask-cuda, maybe along with a deprecation warning of the change?

@pentschev

Copy link
Copy Markdown
Member

That would work, but probably easier and better to do it in Distributed. UCX can be used with pure Distributed (i.e., without Dask-CUDA), I don't know of any such cases currently but would be good to have warnings for any potential users out there.

@charlesbluca

Copy link
Copy Markdown
Member Author

Yeah, that makes sense - @jrbourbeau, would it be feasible to make changes to alias handling in Dask/Distributed so that they are long-lived to handle the cases @pentschev described? Maybe also with a deprecation warning if the alias is used?

@charlesbluca

Copy link
Copy Markdown
Member Author

Closing this in favor of an issue in Distributed discussing the logistics of this variable migration:

dask/distributed#4904

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants