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

Reduce memory usage when not using flower #1329

Open
bufke opened this issue Oct 3, 2023 · 0 comments
Open

Reduce memory usage when not using flower #1329

bufke opened this issue Oct 3, 2023 · 0 comments

Comments

@bufke
Copy link

bufke commented Oct 3, 2023

Right now, flower uses a about 5-6mb of ram when starting celery processes that do not run flower. That's not a lot, but when 20 projects do this it adds up.

I'm willing to investigate more and submit a PR, if there is interest. I did a quick proof of concept moving around imports that removed a little bit without breaking flower.

Here's a memray screenshot of running celery beat loading things like tornado.

image

An alternative approach would be to fix this at the celery level. A workaround is to not install flower on services where it isn't needed, however that can be burdensome. Many projects would want to have just one source code version that does all things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant