Skip to content

Commit afebe7a

Browse files
geoffreybauduinauvipy
authored andcommitted
doc: adding examples to connect to sentinel broker (celery#4143)
Signed-off-by: Geoffrey Bauduin <geoffrey.bauduin@corp.ovh.com>
1 parent f3f6791 commit afebe7a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/getting-started/brokers/redis.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ by adding the ``virtual_host`` parameter to the URL:
5151
5252
redis+socket:///path/to/redis.sock?virtual_host=db_number
5353
54+
It is also easy to connect directly to a list of Redis Sentinel:
55+
56+
.. code-block:: python
57+
58+
app.conf.broker_url = 'sentinel://localhost:26379;sentinel://localhost:26380;sentinel://localhost:26381'
59+
app.conf.broker_transport_options = { 'master_name': "cluster1" }
60+
5461
.. _redis-visibility_timeout:
5562

5663
Visibility Timeout
@@ -81,6 +88,8 @@ you should configure these settings::
8188
For a complete list of options supported by the Redis result backend, see
8289
:ref:`conf-redis-result-backend`
8390

91+
*Note that sentinel is not a supported backend*
92+
8493
.. _redis-caveats:
8594

8695
Caveats

0 commit comments

Comments
 (0)