Ver Fonte

Merge pull request #2793 from wohlgejm/master

Adding documentation for multiple broker URLs #2749
Omer Katz há 9 anos atrás
pai
commit
5efd54794d
1 ficheiros alterados com 14 adições e 0 exclusões
  1. 14 0
      docs/configuration.rst

+ 14 - 0
docs/configuration.rst

@@ -1261,6 +1261,20 @@ default is ``amqp``, which uses ``librabbitmq`` by default or falls back to
 ``couchdb``.
 It can also be a fully qualified path to your own transport implementation.
 
+More than broker URL, of the same transport, can also be specified.
+The broker URLs can be passed in as a single string that is semicolon delimited::
+
+    BROKER_URL = 'transport://userid:password@hostname:port//;transport://userid:password@hostname:port//'
+
+Or as a list::
+
+    BROKER_URL = [
+        'transport://userid:password@localhost:port//',
+        'transport://userid:password@hostname:port//'
+    ]
+
+The brokers will then be used in the :setting:`BROKER_FAILOVER_STRATEGY`.
+
 See :ref:`kombu:connection-urls` in the Kombu documentation for more
 information.