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

Round robin to redis slaves #54

Open
givan opened this issue Feb 11, 2015 · 1 comment
Open

Round robin to redis slaves #54

givan opened this issue Feb 11, 2015 · 1 comment

Comments

@givan
Copy link

givan commented Feb 11, 2015

We're using the redis sentinel to connect to our Redis cluster. We want to use node sentinel to connect to slave machines as:

           options =
                    no_ready_check: true
                    socket_keepalive: true
                    retry_max_delay: 3000
                    connect_timeout: 1000
                    max_attempts: 5
                    role: 'slave'
            redisClient = sentinel.createClient(sentinelConfigs, masterName, options)

Would that result in choosing a redis slave based on round robin fashion every time we call createClient(), or will always pick up the same redis slave in the cluster?

@givan
Copy link
Author

givan commented Feb 11, 2015

I know this client for Ruby, but wanted to see if people had any experience with getting random connection to a redis slave using redis sentinel.

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