简体   繁体   English

Redis Cluster如何处理排序集ZSET(及其他)的复制?

[英]How does Redis Cluster handle replication for sorted sets ZSET (and others)?

Redis Cluster supports sorted sets. Redis Cluster支持排序集。 How is the replication login implemented if used with a replication factor > 1? 如果复制因子> 1,如何实现复制登录? Is the master node forwarding all actions applied against the sorted set to the replica nodes or is there some other mechanism (eg copying the whole set over the wire everytime something changes)? 主节点是将对排序后的集合应用的所有操作转发到副本节点,还是存在其他机制(例如,每当发生更改时通过电线复制整个集合)?

Subquestions: how reliable is this replication? 子问题:此复制的可靠性如何? How does it scales with both frequently accessed and huge sorted sets? 它如何随频繁访问的集和庞大的排序集缩放?

Redis' replication is operation-based, meaning that the slaves get the stream of write commands from the master. Redis的复制基于操作,这意味着从服务器从主服务器获取写命令流。 The replication mechanism isn't related to the clustering functionality and works the same whether used in a cluster or by a standalone Redis server. 复制机制与集群功能无关,无论在集群中还是由独立的Redis服务器使用,其复制机制都相同。

The replication is extremely reliable but note that it is asynchronous. 复制非常可靠,但请注意,它是异步的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM