| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 | .. _broker-mongodb:=============== Using MongoDB===============.. _broker-mongodb-installation:Installation============For the MongoDB support you have to install additional dependencies.You can install both Celery and these dependencies in one go usingeither the `celery-with-mongodb`_, or the `django-celery-with-mongodb` bundles::    $ pip install -U celery-with-mongodb.. _`celery-with-mongodb`:    http://pypi.python.org/pypi/celery-with-mongodb.. _`django-celery-with-mongodb`:    http://pypi.python.org/pypi/django-celery-with-mongodb.. _broker-mongodb-configuration:Configuration=============Configuration is easy, set the transport, and configure the location ofyour MongoDB database::    BROKER_URL = "mongodb://localhost:27017/database_name"Where the URL is in the format of::    mongodb://userid:password@hostname:port/database_nameThe host name will default to ``localhost`` and the port to 27017,and so they are optional.  userid and password are also optional,but needed if your MongoDB server requires authentication... _mongodb-results-configuration:Results-------If you also want to store the state and return values of tasks in MongoDB,you should see :ref:`conf-mongodb-result-backend`... _broker-mongodb-limitations:Limitations===========The mongodb message transport currently does not support:    * Remote control commands (celeryctl, broadcast)
 |