eleme / corvus

A fast and lightweight Redis Cluster Proxy for Redis 3.0
MIT License
789 stars 143 forks source link

[Question] - Command split #117

Closed samber closed 7 years ago

samber commented 7 years ago

Hi,

First, thanks for you great work! :tada:

Why do you do command splitting ? Is it to reduce redis lock time of large MGET/MSET/DEL/... ? Did you make some measurements ?

doyoubi commented 7 years ago

Sorry, I think I don't fully understand the redis lock time you said. Note that in redis cluster, all the keys in MGET/MSET... must be in the same shard. A large MGET will block the single node for a long time, which can have great impact on other requests in this node.

samber commented 7 years ago

ok, I understand why you split: to read or write from multiple redis shards in the same command ;)

Thanks