Skip to content
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

Add redis sentinel support #1472

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add redis sentinel support #1472

wants to merge 2 commits into from

Conversation

jaymell
Copy link
Contributor

@jaymell jaymell commented Oct 2, 2024

This adds support for using Redis Sentinel for queuing and caching.
Sentinel potentially requires a lot of additional configuration params,
so support for that that has been added here, although the redis_dsn
field has been reused and should point to a sentinel server if using the
redissentinel queue/cache types.

@jaymell jaymell force-pushed the redis-sentinel branch 6 times, most recently from 35c1082 to b9e611d Compare October 3, 2024 21:29
@jaymell jaymell changed the title sentinel Add redis sentinel support Oct 3, 2024
@@ -68,7 +68,7 @@ urlencoding = "2.1.2"
form_urlencoded = "1.1.0"
lapin = "2.1.1"
sentry = { version = "0.32.2", features = ["tracing"] }
omniqueue = { git = "https://github.com/svix/omniqueue-rs", rev = "5ae22000e2ea214ba707cac81657f098e5785a76", default-features = false, features = ["in_memory", "rabbitmq-with-message-ids", "redis_cluster"] }
omniqueue = { git = "https://github.com/jaymell/omniqueue-rs", rev = "55f3bccb4298c5de75da1358675f6bfadb016222", default-features = false, features = ["in_memory", "rabbitmq-with-message-ids", "redis_cluster", "redis_sentinel"] }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be updated once upstream PR is merged.

This adds support for using Redis Sentinel for queuing and caching.
Sentinel potentially requires a lot of additional configuration params,
so support for that that has been added here, although the `redis_dsn`
field has been reused and should point to a sentinel server if using the
`redissentinel` queue/cache types.
This test is flaky around the fifth run for some reason. My
guess is because another cleanup process is interfering, which
seems strange but not impossible. Anyway, moving the content-existence
check to _before_ changing its expiration seems to fix the issue.
@jaymell jaymell marked this pull request as ready for review October 3, 2024 22:10
@jaymell jaymell requested a review from a team as a code owner October 3, 2024 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant