Monitoring Celery, what should I use? [closed]

余生颓废 提交于 2019-12-03 07:50:59

问题


I'm using Django, Celery, and Django-Celery. I'd like to monitor the state/results of my tasks, but I'm a little confused on how to do that.

Do I use ./manage.py celeryev, ./manage.py celerymon, ./manage.py celerycam? Do I run sudo /etc/init.d/celeryevcam start?


回答1:


Run:

./manage.py celeryd -E
./manage.py celerycam

The first starts a worker with events enabled.

Now you can find task results in the django admin interface. Ensure you have djcelery in your INSTALLED_APPS. If you want to see task state use also celerymon.




回答2:


I know this is an old question. But for those visiting in the future, Celery Flower is a great tool. It is also recommended by Celery. Here are some cool features from the link above:

Real-time monitoring using Celery Events

  • Task progress and history
  • Ability to show task details (arguments, start time, runtime, and more)
  • Graphs and statistics

Remote Control

  • View worker status and statistics
  • Shutdown and restart worker instances
  • Control worker pool size and autoscale settings
  • View and modify the queues a worker instance consumes from
  • View currently running tasks
  • View scheduled tasks (ETA/countdown)
  • View reserved and revoked tasks
  • Apply time and rate limits
  • Configuration viewer
  • Revoke or terminate tasks

Broker monitoring

  • View statistics for all Celery queues
  • Queue length graphs

HTTP API

Basic Auth, GitHub OAuth2 and Google OpenID authentication



来源:https://stackoverflow.com/questions/5809408/monitoring-celery-what-should-i-use

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!