-
Notifications
You must be signed in to change notification settings - Fork 63
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
Support scaleReads
#119
Comments
If I understand correctly, you want the option Line 41 in 8bb1c36
catbox-redis documentation.
|
@Nargonath Thanks for the reply! I'll try it again. I attempted without and I got a validation error. |
@Nargonath I tried with the latest package and it did work. Unfortunately we are not using |
You're welcome @idahogurl . I'm glad I could help. 😉 |
In the follow up of the issue #119, I thought it would be cool to document the plugin options pass through behavior.
In the follow up of the issue #119, I thought it would be cool to document the plugin options pass through behavior.
Support plan
Context
What problem are you trying to solve?
Our web site is having show-stopping performance issues and we are trying to setup a second Redis instance that is a read-only.
catbox-redis
supports clusters but it does not support the Redis option ofscaleReads
. I found you closed #61 as you determined using a custom Redis client was sufficient. According to the documentation, a custom client must:I was able to get the start to work but
@hapijs/hapi
handles all the situations where you'd need to stop/disconnect the Redis client. A custom client is not sufficient because of the manual stopping. Here is the code I have thus far with using a custom client. Here is what I have thus far.https://gist.github.com/idahogurl/6f5acd5205c132089eea96fd055b092d
Do you have a new or modified API suggestion to solve the problem?
Yes, #78 was closed but it can be done differently.
ioredis
supports clusters and if you pass inscaleReads
it will treat the first Redis node as the primary and then the other as secondaries. To have our setup for areadonly
you setscaleReads
toslave
The text was updated successfully, but these errors were encountered: