Skip to content

fix(controller): return deployment names from retire_workers - #978

Open
omykhailenkopelmorex wants to merge 2 commits into
dask:mainfrom
omykhailenkopelmorex:main
Open

omykhailenkopelmorex wants to merge 2 commits into
dask:mainfrom
omykhailenkopelmorex:main

Conversation

@omykhailenkopelmorex

Copy link
Copy Markdown

Hey Dask team, I tried investigating #855, and found out that the retire_workers code is pretty weird – it tries to retire workers on scheduler via HTTP/RPC, and then returns "worker ids" that were retired. In both the HTTP API case and RPC case, those worker ids are in fact TCP socket addresses ("tcp://worker-host:port"), while at the very end of the function the deployment names are returned. Instead of doing that, we first get a mapping of pod IPs to deployment names, then retire workers via scheduler, get the addresses of retired workers, and then we return deployment names which own those workers. This PR fixed the scale down phase on our cluster. PTAL and let me know if I should do any changes.

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.

1 participant