8000 [Messenger] Add support for multiple Redis Sentinel hosts by alamirault · Pull Request #18920 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Messenger] Add support for multiple Redis Sentinel hosts #18920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1565,6 +1565,8 @@ The Redis transport DSN may looks like this:
MESSENGER_TRANSPORT_DSN=redis://host-01:6379,redis://host-02:6379,redis://host-03:6379,redis://host-04:6379
# Unix Socket Example
MESSENGER_TRANSPORT_DSN=redis:///var/run/redis.sock
# Multiple Redis Sentinel Hosts Example
MESSENGER_TRANSPORT_DSN=redis:?host[redis1:26379]&host[redis2:26379]&host[redis3:26379]&sentinel_master=db

A number of options can be configured via the DSN or via the ``options`` key
under the transport in ``messenger.yaml``:
Expand Down Expand Up @@ -1616,6 +1618,10 @@ sentinel_master String, if null or empty Sentinel null
The ``persistent_id``, ``retry_interval``, ``read_timeout``, ``timeout``, and
``sentinel_master`` options were introduced in Symfony 6.1.

.. versionadded:: 6.4

Support for the multiple redis sentinel hosts DNS was introduced in Symfony 6.4.

.. caution::

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