Closed lloydmeta closed 11 years ago
There is a "master_only" option that you can set when you create your RedisFailover::Client. All reads and writes will go to the master only. This should be covered in the README, I believe.
On Jan 20, 2013, at 9:04 PM, Lloyd notifications@github.com wrote:
Is it possible to make it so that slaves are not used for reads at all?
I know I can set the slave-serve-stale-data setting on the slave to 'no' but I think this will involve one attempt to read from the slave, getting a reply of "SYNC with master in progress", then reading from the master. In the case, I think performance will be adversely affected.
— Reply to this email directly or view it on GitHub.
Ah, that's what master_only means :) sorry about that!
By the way thanks for the awesome library!
Cool! You're welcome. :-)
On Jan 20, 2013, at 9:46 PM, Lloyd notifications@github.com wrote:
Ah, that's what master_only means :) sorry about that!
By the way thanks for the awesome library!
— Reply to this email directly or view it on GitHub.
Is it possible to make it so that slaves are not used for reads at all?
I know I can set the slave-serve-stale-data setting on the slave to 'no' but I think this will involve one attempt to read from the slave, getting a reply of "SYNC with master in progress", then reading from the master. In the case, I think performance will be adversely affected.