Repository navigation
Change heading level of UCX and RMM config reference sections - #7579
charlesbluca wants to merge 1 commit into
Conversation
jrbourbeau
left a comment
There was a problem hiding this comment.
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
|
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 |
|
FWIW |
|
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. |
|
Either way is fine by me. TBH, I always wondered why UCX configs weren't prefixed with |
|
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. |
|
I think it should apply to all ways in which the Dask configuration system can be set. For example, with the following 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 (distributed) ➜ distributed git:(main) ✗ DASK_UCX__TCP=foo python -c "import dask; import distributed; print(dask.config.get('distributed.ucx.tcp'))"
fooDoes |
|
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 |
|
@pentschev would it be feasible to also put the alias handling in dask-cuda, maybe along with a deprecation warning of the change? |
|
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. |
|
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? |
|
Closing this in favor of an issue in Distributed discussing the logistics of this variable migration: |
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.
black dask/flake8 dask/isort dask