elasticsearch - 用于 Ignite 的自定义 CacheStore 是否会自动进行后写?
问题描述
我已经为 Ignite 实现了一个自定义 CacheStore 来与 Elastic Search 进行通信。现在,如果 ElasticSearch 服务器宕机一段时间,缓存中的数据会在 ES 服务器启动后上传到 Elastic Search 吗?
解决方案
用于 Ignite 的自定义 CacheStore 是否会自动进行后写?
不。默认情况下禁用:https ://apacheignite.readme.io/docs/3rd-party-store#section-configuration
setWriteBehindEnabled(boolean) | Sets flag indicating whether write-behind is enabled. | false
现在,如果 ElasticSearch 服务器宕机一段时间,缓存中的数据会在 ES 服务器启动后上传到 Elastic Search 吗?
不会。Ignite 不会再次发送该数据。它也在文档中指定:
Performance vs. Consistency
Enabling write-behind caching increases performance by performing
asynchronous updates, but this can lead to a potential drop in consistency as
some updates could be lost due to node failures or crashes.
推荐阅读
- excel - 创建 Excel 文件不再在 AppleScript 中工作
- html - 基本的html!我想在我的页面上添加一个黑框
- javascript - 如何使用单个对象制作正确的默认道具
- svelte - 动态 html 元素作为组件
- python - 有没有办法将 dilog flow cx 代理与 Skype 集成?
- assembly - 不使用分支指令的 n 个自然数(1 到 n)的 MIPS 代码总和
- java - 理解方法引用工作的问题
- makefile - 如何逐步调试 GNU make?
- parse-platform - 以编程方式为用户创建新的 Parse.Session,无需密码
- git - TeamCity:配置 VCS 根目录时无法选择我上传的 SSH 密钥