Apache ignite 逐出并置条目

Apache ignite eviction for colocated entries

我们有四种类型的缓存,它们是根据关系进行配置的。此外,它配置为将所有内容保存在内存中而无需本机持久性。

现在我们计划通过使用 Random2Lru 配置具有初始大小、最大大小和逐出模式的默认数据区域来启用所有缓存的逐出策略。

当逐出发生在并置缓存中时,ignite 逐出单个缓存或其相关条目是否也会被逐出?

如何对并置条目进行驱逐,因为无论何时发生驱逐,我们都需要删除其相关条目?

When the eviction happens from colocated caches, will ignite evict from single cache or its related entries also be evicted?

Ignite 将从单个缓存中逐出,不会逐出相关条目。

2.

How does the eviction happen for colocated entries, because, whenever the eviction happens we need to remove its related entries?

并置不会以任何方式影响驱逐。逐出适用于数据页(不适用于单个条目)。逐出仅使用数据页更新时间戳来决定将逐出哪些数据页。

是的,在这种情况下,您应该手动跟踪相关条目。