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

High availability deploy of flower #742

Closed
arthurzenika opened this issue Oct 4, 2017 · 4 comments
Closed

High availability deploy of flower #742

arthurzenika opened this issue Oct 4, 2017 · 4 comments
Labels

Comments

@arthurzenika
Copy link

We are running a high availability application using redis and sentinel, and deploying flower to monitor and web admin our celery task queue. We have two flower applications installed and sitting behind a load balancer and we are getting different informations from the two web applications. If the applications have been restart at the same time we mostly get the same numbers out of both application, but in some cases, the informations differ (with an interesting flashing animation).

Any ideas on how we could solve this problem ?

@johnarnold
Copy link
Contributor

What you're observing is that they have different results in their in-mem Task and Worker caches. If you enable persistence, and do "clean shutdowns" of flower when you reboot, they will come back up with most of their previous state and your instances will be closer to the same. They won't be the same because some events (cache updates) are missed while flower is down. We have been discussing how to minimize or avoid that in:
#724

@arthurzenika
Copy link
Author

@johnarnold thanks for your answer, we'll look into activating http://flower.readthedocs.io/en/latest/config.html?highlight=persistent#persistent and see if that's enough and if not we'll take a closer look at the postgres persistence PR

@BlackVoid
Copy link

BlackVoid commented Oct 28, 2019

@arthurlogilab did you manage to solve this issue? I'm having the same problem, but I'm running Flower in multiple EC2 instances without persistent storage.

@arthurzenika
Copy link
Author

@BlackVoid nope, we haven't solved this problem. Good luck for your use case.

@mher mher added the question label Apr 17, 2020
@mher mher closed this as completed Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants