gpt4 book ai didi

database - Redis级联复制

转载 作者:行者123 更新时间:2023-12-03 06:37:33 29 4
gpt4 key购买 nike

我在Redis上进行级联复制

A -> B -> C

当我在A上插入数据时,我可以在B和C上获取数据
如果我将数据插入到B中,则无法在较低的从属C上接收到它。

该文档具有以下内容:
Replicas are able to accept connections from other replicas.
Aside from connecting a number of replicas to the same master,
replicas can also be connected to other replicas in a cascading-like
structure. Since Redis 4.0, all the sub-replicas will receive
exactly the same replication stream from the master.

我可以配置复制以写入A / B并从C读取吗?

最佳答案

可能将无法配置这种复制。
阅读documentation,发现这样的项目

Also note that since Redis 4.0 replica writes are only local, and are not propagated to sub-replicas attached to the instance. Sub-replicas instead will always receive the replication stream identical to the one sent by the top-level master to the intermediate replicas. So for example in the following setup:

A ---> B ---> C

Even if B is writable, C will not see B writes and will instead have identical dataset as the master instance A.

关于database - Redis级联复制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62212236/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com