mongodb.rst 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. .. _broker-mongodb:
  2. ===============
  3. Using MongoDB
  4. ===============
  5. .. _broker-mongodb-installation:
  6. Installation
  7. ============
  8. For the MongoDB support you have to install additional dependencies.
  9. You can install both Celery and these dependencies in one go using
  10. either the `celery-with-mongodb`_, or the `django-celery-with-mongodb` bundles::
  11. $ pip install -U celery-with-mongodb
  12. .. _`celery-with-mongodb`:
  13. http://pypi.python.org/pypi/celery-with-mongodb
  14. .. _`django-celery-with-mongodb`:
  15. http://pypi.python.org/pypi/django-celery-with-mongodb
  16. .. _broker-mongodb-configuration:
  17. Configuration
  18. =============
  19. Configuration is easy, set the transport, and configure the location of
  20. your MongoDB database::
  21. BROKER_URL = "mongodb://localhost:27017/database_name"
  22. Where the URL is in the format of::
  23. mongodb://userid:password@hostname:port/database_name
  24. The host name will default to ``localhost`` and the port to 27017,
  25. and so they are optional. userid and password are also optional,
  26. but needed if your MongoDB server requires authentication.
  27. .. _mongodb-results-configuration:
  28. Results
  29. -------
  30. If you also want to store the state and return values of tasks in MongoDB,
  31. you should see :ref:`conf-mongodb-result-backend`.
  32. .. _broker-mongodb-limitations:
  33. Limitations
  34. ===========
  35. The mongodb message transport currently does not support:
  36. * Remote control commands (celeryctl, broadcast)