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

what is the way to connect to the master? #1

Open
veeramarni opened this issue Oct 11, 2018 · 2 comments
Open

what is the way to connect to the master? #1

veeramarni opened this issue Oct 11, 2018 · 2 comments

Comments

@veeramarni
Copy link

veeramarni commented Oct 11, 2018

I use helm repo redis-cache that uses this docker image. The issue we noticing was when we only give one URL for redis, it will fail if that serving a slave with error READONLY slave. Can you tell us what should we give to connect to redis master all the time?

We use the settings showing in the following file and it fails with Last error: ERR unknown command 'sentinel'
https://github.com/luin/ioredis#sentinel

@dhilipkumars
Copy link
Owner

Hi @veeramarni , this is not a full fledged sentinel (not a running service), it is only invoked when a master-slave promotion is required by K8s statefulset controller.

you need to do this on any redis-server (withing this master / slave) setup
$info replication
which will give you the new elected master and start using that

@blaw2422
Copy link

@veeramarni , one way to do what you need is to put the sentinel command in a loop on a running container.

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

3 participants