Skip to content

Support multiple listeners in the scheduler - #3288

Merged
mrocklin merged 2 commits into
dask:masterfrom
mrocklin:scheduler-multiple-listeners
Dec 5, 2019
Merged

mrocklin merged 2 commits into
dask:masterfrom
mrocklin:scheduler-multiple-listeners

Conversation

@mrocklin

Copy link
Copy Markdown
Member

This allows the scheduler to listen on multiple different listeners at
once. This can be useful when the client and workers are on different
interfaces, or have different security concerns.

So far this isn't documented.

cc @jcrist @jacobtomlinson for review

This allows the scheduler to listen on multiple different listeners at
once. This can be useful when the client and workers are on different
interfaces, or have different security concerns.
Comment thread distributed/core.py
Comment on lines +234 to +239
@property
def listener(self):
if self.listeners:
return self.listeners[0]
else:
return None

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.

Should this raise some kind of warning as it will limit folks to only accessing one listener in the case that they have multiple listeners.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think that this is likely ok? In principle we should stop using listener any longer, and should always iterate over listeners. This is here mostly for backwards compatibility and convenience. Given that this is likely to be ok 99% of the time I'm inclined not to raise a warning.

@mrocklin
mrocklin merged commit b1e7ab4 into dask:master Dec 5, 2019
@mrocklin
mrocklin deleted the scheduler-multiple-listeners branch December 5, 2019 01:16
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.

2 participants