Redis Cluster hashslots.

37 views
Skip to first unread message

Vineel Yalamarthi

unread,
Jul 10, 2022, 9:25:39 AMJul 10
to Redis DB
Hi there

I understand we can migrate hash-slot for one node to another. Can we also replicate specific hash-slot from one node to another.

Regards
Vineel


Itamar Haber

unread,
Jul 10, 2022, 10:42:06 AMJul 10
to Redis DB
Hello Vineel,

Replication in Redis is always at shard level (i.e., "node"), so replicas consist of the complete hash slots as their respective masters. As far as I know, there's no way to replicate only specific hash slots. May I ask why you are interested in this capability and the nature of the problem that you're trying to solve?

Cheers,
Itamar

Vineel Yalamarthi

unread,
Jul 11, 2022, 9:49:29 PMJul 11
to redi...@googlegroups.com
If we have that capability, I thought we could write our implementation of a consistent-hash ring. So that we can move slots around in such a way every slot is replicated and all nodes are masters. Cluster resizing becomes very easy and we would have minimum slot movement.

Regards
Vineel

Disclaimer

The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.

--
You received this message because you are subscribed to a topic in the Google Groups "Redis DB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/redis-db/6Jn_sKWO6pg/unsubscribe.
To unsubscribe from this group and all its topics, 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/da7e01ee-8662-4bf4-9fa6-2e995707c64en%40googlegroups.com.


--
Regards
Venkata Vineel
Reply all
Reply to author
Forward
0 new messages