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

[Enhancement]: Add Redis Sentinel test container #1298

Open
Alirexaa opened this issue Nov 16, 2024 · 0 comments
Open

[Enhancement]: Add Redis Sentinel test container #1298

Alirexaa opened this issue Nov 16, 2024 · 0 comments
Labels
enhancement New feature or request module An official Testcontainers module

Comments

@Alirexaa
Copy link

To use Redis for high availability, we use Redis Sentinel and provide multiple Redis instances to configure master and slave. Redis Sentinel monitors the master instance and provides a connection to the slave when the master is unavailable.

in c# code we use ConnectionMultiplexer.SentinelConnect(sentinelConfig); to get connection for this setup.
And in our tests, we should use a sentinel connection instead of a standard connection.
Its quite complicate to configure a test container to spin up the Redis Sentinel connection and I think we should have an package for making developer life easier.

I already implemented this test container in my project, and it took me 1 day to configure (it was a lot of time, and it made me crazy).
I could send a PR for this package and save a lot of time for other developers.

@HofmeisterAn HofmeisterAn added enhancement New feature or request module An official Testcontainers module labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request module An official Testcontainers module
Projects
None yet
Development

No branches or pull requests

2 participants