Skip to content

Commit 4a0be7d

Browse files
[Messenger] Redis Sentinel support
1 parent 63261ef commit 4a0be7d

File tree

1 file changed

+41
-33
lines changed

1 file changed

+41
-33
lines changed

messenger.rst

Lines changed: 41 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,39 +1440,47 @@ The Redis transport DSN may looks like this:
14401440
A number of options can be configured via the DSN or via the ``options`` key
14411441
under the transport in ``messenger.yaml``:
14421442

1443-
1444-
=================== ===================================== =================================
1445-
Option Description Default
1446-
=================== ===================================== =================================
1447-
stream The Redis stream name messages
1448-
group The Redis consumer group name symfony
1449-
consumer Consumer name used in Redis consumer
1450-
auto_setup Create the Redis group automatically? true
1451-
auth The Redis password
1452-
delete_after_ack If ``true``, messages are deleted false
1453-
automatically after processing them
1454-
delete_after_reject If ``true``, messages are deleted true
1455-
automatically if they are rejected
1456-
lazy Connect only when a connection is false
1457-
really needed
1458-
serializer How to serialize the final payload ``Redis::SERIALIZER_PHP``
1459-
in Redis (the
1460-
``Redis::OPT_SERIALIZER`` option)
1461-
stream_max_entries The maximum number of entries which ``0`` (which means "no trimming")
1462-
the stream will be trimmed to. Set
1463-
it to a large enough number to
1464-
avoid losing pending messages
1465-
tls Enable TLS support for the connection false
1466-
redeliver_timeout Timeout before retrying a pending ``3600``
1467-
message which is owned by an
1468-
abandoned consumer (if a worker died
1469-
for some reason, this will occur,
1470-
eventually you should retry the
1471-
message) - in seconds.
1472-
claim_interval Interval on which pending/abandoned ``60000`` (1 Minute)
1473-
messages should be checked for to
1474-
claim - in milliseconds
1475-
=================== ===================================== =================================
1443+
======================= ===================================== =================================
1444+
Option Description Default
1445+
======================= ===================================== =================================
1446+
stream The Redis stream name messages
1447+
group The Redis consumer group name symfony
1448+
consumer Consumer name used in Redis consumer
1449+
auto_setup Create the Redis group automatically? true
1450+
auth The Redis password
1451+
delete_after_ack If ``true``, messages are deleted false
1452+
automatically after processing them
1453+
delete_after_reject If ``true``, messages are deleted true
1454+
automatically if they are rejected
1455+
lazy Connect only when a connection is false
1456+
really needed
1457+
serializer How to serialize the final payload ``Redis::SERIALIZER_PHP``
1458+
in Redis (the
1459+
``Redis::OPT_SERIALIZER`` option)
1460+
stream_max_entries The maximum number of entries which ``0`` (which means "no trimming")
1461+
the stream will be trimmed to. Set
1462+
it to a large enough number to
1463+
avoid losing pending messages
1464+
tls Enable TLS support for the connection false
1465+
redeliver_timeout Timeout before retrying a pending ``3600``
1466+
message which is owned by an
1467+
abandoned consumer (if a worker died
1468+
for some reason, this will occur,
1469+
eventually you should retry the
1470+
message) - in seconds.
1471+
claim_interval Interval on which pending/abandoned ``60000`` (1 Minute)
1472+
messages should be checked for to
1473+
claim - in milliseconds
1474+
sentinel_persistent_id String, if null connection is null
1475+
non-persistent.
1476+
sentinel_retry_interval Int, value in milliseconds ``0``
1477+
sentinel_read_timeout Float, value in seconds ``0``
1478+
default indicates unlimited
1479+
sentinel_timeout Float, value in seconds ``0``
1480+
default indicates unlimited
1481+
sentinel_master String, if null or empty Sentinel null
1482+
support is disabled
1483+
======================= ===================================== =================================
14761484

14771485
.. caution::
14781486

0 commit comments

Comments
 (0)