thomasjpfan / redis-cluster-docker-swarm

Redis cluster cache configuration for docker swarm
MIT License
112 stars 46 forks source link

READONLY You can't write against a read only slave. #6

Closed sguilly closed 5 years ago

sguilly commented 5 years ago

I am success to start the stack on a swarm cluster.

i am success to connect with redis-cli and externaly with "redis desktop manager".

But when i try to execute a simple command "set foo bar", i receive this error : "-READONLY You can't write against a read only slave."

Thanks for your help...

thomasjpfan commented 5 years ago

You need to use to the Redis Sentinel to get current the master, then use that information to log into the master.

You can read about Redis Sentinel here: https://redis.io/topics/sentinel