Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UCX scrub config logging #4850

Merged
merged 1 commit into from
May 26, 2021
Merged

Conversation

pentschev
Copy link
Member

@pentschev pentschev commented May 25, 2021

I believe this check was originally intended to work as a map from DASK_UCX__* to the actual UCX_* configurations. Since the original implementation the UCX configurations in Dask have evolved to aliases, so the mapping doesn't match. However, the options variable is what is passed to UCX, so we should verify that we're not setting variables that don't match those that UCX exposes.

@quasiben
Copy link
Member

Thanks @pentschev . I'll merge after passing

@fjetter
Copy link
Member

fjetter commented May 25, 2021

Is there anything we can put into a test here?

@quasiben
Copy link
Member

You could put in an invalid UCX config option then check debug output.

@pentschev
Copy link
Member Author

Not really, because we don't let users specify those manually and the current code will never encounter a condition where it can fail. We could do a mock test, but I don't think it's worth the time to be honest, we might just wipe that check out instead as in its current state it will never fail (unless there's a change in UCX).

@fjetter
Copy link
Member

fjetter commented May 26, 2021

I'm not familiar with the UCX code and trust your judgment. If this is fine without a test, go ahead.

@quasiben
Copy link
Member

Thank you for the comments and review @fjetter

@quasiben quasiben merged commit b03fd81 into dask:main May 26, 2021
@pentschev
Copy link
Member Author

Thanks all for the reviews!

@pentschev pentschev deleted the fix-ucx-scrub-log branch May 26, 2021 15:18
douglasdavis pushed a commit to douglasdavis/distributed that referenced this pull request May 28, 2021
pentschev added a commit to pentschev/dask-cuda that referenced this pull request Sep 24, 2021
Support for setting UCX global options was dropped in
dask/distributed#4850, as the conflict of Dask
configs and UCX configs can be dangerous since both used to live in the
same namespace. Setting global UCX options can still be done via
environment variables, such as `UCX_*`, and is the preferred method now.
rapids-bot bot pushed a commit to rapidsai/dask-cuda that referenced this pull request Sep 24, 2021
Support for setting UCX global options was dropped in
dask/distributed#4850, as the conflict of Dask
configs and UCX configs can be dangerous since both used to live in the
same namespace. Setting global UCX options can still be done via
environment variables, such as `UCX_*`, and is the preferred method now.

Fixes #627

Authors:
  - Peter Andreas Entschev (https://github.com/pentschev)

Approvers:
  - Mads R. B. Kristensen (https://github.com/madsbk)

URL: #738
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.

DEBUG log messages imply UCX config options are invalid
4 participants