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

Sending reads to replica nodes on non-zero db not possible? #2997

Open
lazorfuzz opened this issue May 16, 2024 · 0 comments
Open

Sending reads to replica nodes on non-zero db not possible? #2997

lazorfuzz opened this issue May 16, 2024 · 0 comments

Comments

@lazorfuzz
Copy link

lazorfuzz commented May 16, 2024

Expected Behavior

I am using Sentinel with 1 primary and 2 replicas. I want to send read-only commands to the replicas, on ANY DB number, not just DB 0.

Current Behavior

Today, looks like it's not possible to do this with FailoverClient. If I switch to FailoverClusterClient it will work, but it forces me to use DB 0. Since I am not using Redis Cluster, I should be able to use the other DBs, but this is not supported.

I saw some PRs and discussion in the past that apparently add support for this, but I'm not able to find it in either v8 or v9:
#1199

A possible fix was suggested here, but no maintainers have responded:
#2824

Frankly it is surprising that go-redis doesn't seem to support this, while other Redis libraries for other languages have long supported this. Am I just missing something? Please advise, thanks.

@lazorfuzz lazorfuzz changed the title Sending reads to replica nodes on non-db zero not possible? Sending reads to replica nodes on non-zero db not possible? May 16, 2024
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

No branches or pull requests

1 participant