READONLY You can't write against a read only slave

1,202 views
Skip to first unread message

Kral Adam

unread,
Oct 13, 2020, 9:48:50 AM10/13/20
to Redis DB
Hello, community. I've installed Redis and redis sentinel. I did master and slave with Redis. In the sentinel section, however, the link appears to be sdwon. And slave can't write. When we give him permission to write, the master can't see what the slave is writing. Or load balancing failed. Is there anyone who can help me on this ? Paid support . Or free of charge.

Greg Andrews

unread,
Oct 14, 2020, 5:07:03 PM10/14/20
to Redis DB
Redis is not a multi-master data store.  The master instance is the only one that can accept write commands.  The master can also accept read commands.  The replica (aka slave) does not accept write commands, only read commands.

vishal macom

unread,
Oct 15, 2020, 3:53:34 PM10/15/20
to redi...@googlegroups.com
The problem here is you have read-only parameter configured in redis.conf file

Read-only replica to yes

So whenever you want to write data into slave it will give that error

In your case if a +sdown state is seen it means ( slave down ) so it should not effect your insertion mechanism

I think you need to be aware of which is master so that this problem can b solved


On Tue, Oct 13, 2020, 7:18 PM Kral Adam <muzaff...@gmail.com> wrote:
Hello, community. I've installed Redis and redis sentinel. I did master and slave with Redis. In the sentinel section, however, the link appears to be sdwon. And slave can't write. When we give him permission to write, the master can't see what the slave is writing. Or load balancing failed. Is there anyone who can help me on this ? Paid support . Or free of charge.

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/c432b4ae-0672-4ebc-8060-ad05c6d800ebn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages