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

Allow REDIS_CLUSTER environment variable to use Redis in cluster mode #2377

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

n1mmy
Copy link

@n1mmy n1mmy commented Feb 8, 2025

Using a Redis cluster instead of a single host allows for a more high-availability deployment.

This patch is only allows a single seed host. A more full implementation would have some way to support multiple seed hosts (eg a comma separated list, or multiple environment variables). However, this is enough to get started and works well in environments that have a single name/IP that will connect to a redis cluster (eg a load balancer or a kubernetes service).

@n1mmy n1mmy force-pushed the master branch 3 times, most recently from 06183c8 to f756178 Compare February 8, 2025 16:22
@J0WI
Copy link
Contributor

J0WI commented Feb 13, 2025

There are several similar PRs: #2334, #2288 and #2236
Would you like to integrate them here?

@n1mmy
Copy link
Author

n1mmy commented Feb 19, 2025

@J0WI I can give it shot when I have some free development time in the next week or two. I don't have a great testing environment at the moment, but I'll figure something out.

Please don't wait for me though, if other things are ready to merge go ahead and merge them and I can update this PR for the new changes.

@n1mmy n1mmy marked this pull request as draft February 20, 2025 04:11
@n1mmy
Copy link
Author

n1mmy commented Feb 20, 2025

After looking at the other PRs in more detail, I realize this PR needs to update redis.config.php as well. I will update it when I am able. Please do not merge yet.

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.

2 participants