Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Cache] fix using multiple Redis Sentinel hosts when the first one is not resolvable#51598

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@digilist
Copy link
Contributor

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#51570
LicenseMIT
Doc PR

See ticket#51570 for details on this bugfix.

As mentioned in the ticket, I am not sure if it's wise to catch all exceptions or if it would be better to only check for specific ones. But since I cannot think about any reasons other than an unreachable host to raise any exception, I decided to catch all exceptions for now.

@carsonbotcarsonbot added this to the6.4 milestoneSep 7, 2023
@digilistdigilist changed the base branch from6.4 to5.4September 7, 2023 20:43
@digilistdigilistforce-pushed the51570-fix-redis-sentinel-only-trying-first-host branch from1190150 to4ab66afCompareSeptember 7, 2023 20:45
@digilistdigilistforce-pushed the51570-fix-redis-sentinel-only-trying-first-host branch 2 times, most recently frombd789ca to193af22CompareSeptember 11, 2023 08:53
@digilistdigilistforce-pushed the51570-fix-redis-sentinel-only-trying-first-host branch from193af22 to578a152CompareSeptember 12, 2023 19:54
@nicolas-grekasnicolas-grekas modified the milestones:6.4,5.4Sep 14, 2023
@symfonysymfony deleted a comment fromcarsonbotSep 14, 2023
@nicolas-grekas
Copy link
Member

Thank you@digilist.

@nicolas-grekasnicolas-grekas merged commit7c4f174 intosymfony:5.4Sep 14, 2023
nicolas-grekas added a commit that referenced this pull requestSep 20, 2023
…sts (digilist)This PR was merged into the 6.4 branch.Discussion----------[Messenger] Add support for multiple Redis Sentinel hosts| Q             | A| ------------- | ---| Branch?       | 6.4| Bug fix?      | no| New feature?  | yes| Deprecations? | no| Tickets       | n/a| License       | MIT| Doc PR        | n/aSimilar to#47003 which added support for multiple Redis Sentinel hosts for the Cache component, this PR adds support for multiple Sentinel hosts for the Messenger component.This PR is inspired by the implementation in the cache component and works very similar. A DSN could look like this: `redis:?host[localhost:26377]&host[localhost:26379]&sentinel_master=db`.I changed the Sentinel host environment variable for the ingegration to an invalid host at. As a result I noticed that Relay also fails in such case and so I expanded my earlier changes from#51598 to also ignore unreachable hosts with the Relay extension.Commits-------3380518 [Messenger] Add support for multiple Redis Sentinel hosts
This was referencedSep 30, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

[Cache] Redis Sentinel only attempting connection via first host with PHP Redis extension

3 participants

@digilist@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp