8000 minor #18920 [Messenger] Add support for multiple Redis Sentinel host… · symfony/symfony-docs@7d87bcf · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d87bcf

Browse files
committed
minor #18920 [Messenger] Add support for multiple Redis Sentinel hosts (alamirault)
This PR was merged into the 6.4 branch. Discussion ---------- [Messenger] Add support for multiple Redis Sentinel hosts Fix #18912 Commits ------- aa19810 [Messenger] Add support for multiple Redis Sentinel hosts
2 parents 04cd09c + aa19810 commit 7d87bcf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

messenger.rst

+6
Original file line numberDiff line numberDiff line change
@@ -1565,6 +1565,8 @@ The Redis transport DSN may looks like this:
15651565
MESSENGER_TRANSPORT_DSN=redis://host-01:6379,redis://host-02:6379,redis://host-03:6379,redis://host-04:6379
15661566
# Unix Socket Example
15671567
MESSENGER_TRANSPORT_DSN=redis:///var/run/redis.sock
1568+
# Multiple Redis Sentinel Hosts Example
1569+
MESSENGER_TRANSPORT_DSN=redis:?host[redis1:26379]&host[redis2:26379]&host[redis3:26379]&sentinel_master=db
15681570
15691571
A number of options can be configured via the DSN or via the ``options`` key
15701572
under the transport in ``messenger.yaml``:
@@ -1616,6 +1618,10 @@ sentinel_master String, if null or empty Sentinel null
16161618
The ``persistent_id``, ``retry_interval``, ``read_timeout``, ``timeout``, and
16171619
``sentinel_master`` options were introduced in Symfony 6.1.
16181620

1621+
.. versionadded:: 6.4
1622+
1623+
Support for the multiple redis sentinel hosts DNS was introduced in Symfony 6.4.
1624+
16191625
.. caution::
16201626

16211627
There should never be more than one ``messenger:consume`` command running with the same

0 commit comments

Comments
 (0)
0