-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
graph data persistency #27
Comments
Flower gets celery events in real time and doesn't store anything on a disk. If you restart flower server you get an initial state. |
yep, I got that right then :) |
Celery can produce a huge amount of events and storing them all on the disk may be undesirable. What is you use case? |
I think it would be cool to keep data about throughput per instance (the monitor graph) over time. |
I would like this as well. I think it would be enough to store let's say the last 30 days worth of data. If flower has been running for a while you get nice graphs and tons of data about how your workers are performing, etc but if you need to make a configuration change and restart the server, all of that is lost. What if your supervisord process that keeps flower alive decides to go to lunch? Just a thought... |
For redis-backed brokers and storage backends, it may be a good idea to persist the events for a configurable amount of time specified by the user. Setting an expiration on the already existing keys seems a logical option. Redis can then be configured http://redis.io/topics/config to cap the memory usage of those keys by either evicting old keys or denying the writing of new keys. |
I've implemented --persistent option which allows to save/load the current state. Be default flower.db file is used which can be changed with --db option. --max_task option allows to limit the number of tasks in memory. |
@mher When you navigate to /monitor is the expected behaviour that it will show you past executed tasks or is it only real updated in real time? Thanks. |
I have the same question: does persistent mode have any effect on the monitor's charts? |
/monitor only shows real-time data. |
@mher Is there a way where I can edit the contents of |
@mher I am new to flower and I am not able to figure out that from where does flower read celery tasks/events to show on dashboard? If I am not setting persistence flag as True that means there is no database file being created, then where does it read the data from? |
Flower reads data from events. When celery got message from broker, it fires the events: To keep data about workers and counters, I tried to persist counter data in this PR: #926 |
Any update on PR #926? would be great to see this data persisted |
Monitor tab is deprecated, use Prometheus instead. |
Hi,
Did I miss it or all real time data celery fetches from workers is not persistent on flower end ?
Tommaso
The text was updated successfully, but these errors were encountered: