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

Dagster daemon consumes too much memory #26287

Open
hirotsuda opened this issue Dec 5, 2024 · 0 comments
Open

Dagster daemon consumes too much memory #26287

hirotsuda opened this issue Dec 5, 2024 · 0 comments
Labels
type: bug Something isn't working

Comments

@hirotsuda
Copy link

hirotsuda commented Dec 5, 2024

What's the issue?

We have used dagster and deployed it on kubernetes.
As the number of assets grows, I have noticed the amount of memory consumed by dagster daemon gets increased. Now the amount of used memory reaches at 20GB.

スクリーンショット 2024-12-05 15 23 33

I thought that is an unexpected behavior so I installed memray on the dagster image to find why such a large amount of memory is used. The result is as follows.

スクリーンショット 2024-12-04 18 17 24

As the above pic says, a method called sync_get_streaming_external_repositorys_data_grpc occupies much memory. Also a method called raw_decode uses much memory. My theory is that methods involving grpc require much memory and this seems to lead to the result that 20GB memory is used in my dagster daemon.

Is there any way to reduce the amount of used memory in dagster daemon?

What did you expect to happen?

Less memory is consumed in dagster daemon.

How to reproduce?

We use dagster_dbt and have roughly 1000 assets: about 370 assets are imported as tables generated by dbt, about 370 assets are used as source in dbt and the others are defined in dagster.

Dagster version

1.8.13

Deployment type

Other Docker-based deployment

Deployment details

No response

Additional information

No response

Message from the maintainers

Impacted by this issue? Give it a 👍! We factor engagement into prioritization.
By submitting this issue, you agree to follow Dagster's Code of Conduct.

@hirotsuda hirotsuda added the type: bug Something isn't working label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant