I was wondering if this was done by design, there is some limitation, or nobody has gotten to it yet. I would like to add some custom code to allow multikey functionality. AFAIK, a cluster of three masters is, in a way, just 3 different redis instances, each with less slots. I should just be able to program the proxy to figure out which keys belong to which instances and then send multikey requests to each node with the corresponding keys? I know that even within a node, sending a multikey request will fail if two keys have different slots, but in the single-instance Redis mode, we can make multikey requests that span different hash slots, so I am wondering why that same logic can't be applied to nodes in a cluster.
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Right! So I was aware of that, but why is even that requirement there? Why do they need to be in the same slot?
Because they beed to be on the same node in order for multi-key operations to be supported, and hash tags are the only way to guarantee single-node without it working purely by chance.Single-node is the only supported scenario for redis server-side operations currently. You could of course to the orchestration client-side, in which case: go for it! But be aware of the atomicity aspects, which is hard to do with multiple masters involved.
On 12 Aug 2017 3:46 p.m., "Sidd S" <ssin...@gmail.com> wrote:
Right! So I was aware of that, but why is even that requirement there? Why do they need to be in the same slot?
--
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 unsubscribe from this group and stop receiving emails from it, send an email to redis-db+unsubscribe@googlegroups.com.
if (n != server.cluster->slots[thisslot]) {
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+unsubscribe@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Itamar Haber | Chief OSS Education Officer
Redis Labs ~/redis
Mobile: +972 (54) 567 9692
Twitter: @itamarhaber
Skype: itamar.haber
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+unsubscribe@googlegroups.com.