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

Update Downloader utility class to use static dask cluster #1161

Merged
merged 23 commits into from
Sep 22, 2023

Conversation

efajardo-nv
Copy link
Contributor

@efajardo-nv efajardo-nv commented Aug 29, 2023

Description

  • file_to_df_loader is creating a new downloader object for every file list batch. Each downloader creates its own dask cluster which results in very slow processing and DFP module pipelines eventually fail.
  • Update Downloader utility class to use static dask cluster

Fixes #1146

Checklist

[x] I am familiar with the Contributing Guidelines.
[x] New or existing tests cover these changes.
[x] The documentation is up to date with these changes.

@efajardo-nv efajardo-nv added bug Something isn't working non-breaking Non-breaking change labels Aug 29, 2023
@efajardo-nv efajardo-nv self-assigned this Aug 29, 2023
@efajardo-nv efajardo-nv requested a review from a team as a code owner August 29, 2023 17:54
@efajardo-nv efajardo-nv changed the title Update file_to_df_loader to use static downloader Update Downloader utility class to use static dask cluster Sep 11, 2023
Copy link
Contributor

@mdemoret-nv mdemoret-nv left a comment

Choose a reason for hiding this comment

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

Need to synchronize creating the cluster from multiple threads with a mutex.

tests/test_downloader.py Show resolved Hide resolved
tests/test_downloader.py Outdated Show resolved Hide resolved
morpheus/utils/downloader.py Show resolved Hide resolved
morpheus/utils/downloader.py Show resolved Hide resolved
morpheus/utils/downloader.py Outdated Show resolved Hide resolved
@mdemoret-nv
Copy link
Contributor

/merge

@rapids-bot rapids-bot bot merged commit f8b774a into nv-morpheus:branch-23.11 Sep 22, 2023
6 checks passed
@efajardo-nv efajardo-nv deleted the file-to-df-loader-fix branch July 29, 2024 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[BUG]: DFP module pipelines creating dask cluster for every batch
2 participants