[英]Is it possible to have a data delay between nodes in distributed mode Infinispan?
With Infinispan v9, my app uses a distributed async cache mode where number of cluster-wide data replicas is 3.使用 Infinispan v9,我的应用程序使用分布式异步缓存模式,其中集群范围的数据副本数为 3。
Let's say data owner/replica of cache entry 123 is in Nodes A, B, C .假设缓存条目 123的数据所有者/副本位于节点 A、B、C中。
With this, I have two questions (assuming they were not caused by network issues)有了这个,我有两个问题(假设它们不是由网络问题引起的)
Assuming node A
as primary owner of entry 123 (each key has 1 primary owner and N-1
backup owners, where N
is the number of replicas)假设节点
A
是条目 123的主要所有者(每个密钥有 1 个主要所有者和N-1
备份所有者,其中N
是副本数)
C
can read stale values due to replication lag.C
可以读取过时的值。D
), it first tries to fetch the value from the primary owner (node A
).D
)中发生读取时,它首先尝试从主所有者(节点A
)获取值。 If A
doesn't reply in time, then it goes to the next owner (node B
) and so one.A
没有及时回复,那么它会转到下一个所有者(节点B
)等等。 Now, if A
replies in time, it won't read the stale the value.现在,如果
A
及时回复,它就不会读取过时的值。 Otherwise, it may read the stale value from node B
or C
否则,它可能会从节点
B
或C
读取过时的值
You have this information (and more) in the documentation .您在文档中有这些信息(以及更多信息)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.