Closed
Description
Symfony version(s) affected
6.3.10
Description
The redis sentinel DSN is documented as
MESSENGER_DSN=redis:?host[host1:5000]&host[host2:5000]&host[host3:5000]&sentinel_master=test&dbindex=0
While this works for the cache DSN, it doesn't for the messenger. After a lot of debugging, I came up with this working syntax:
MESSENGER_DSN=redis://host1:5000?sentinel_master=test&dbindex=1
Unfortunately, this doesn't allow to set multiple sentinel hosts in case one is down.
How to reproduce
Set
MESSENGER_DSN=redis:?host[host1:5000]&host[host2:5000]&host[host3:5000]&sentinel_master=test&dbindex=0
and try to start console messenger:consume
(or try to queue something via messenger).
Possible Solution
Use a similar redis sentinel implementation as in cache would be peferably the best outcome, but a fixed documentation would improve the situation as well.
Additional Context
No response