ignite - 启动时出现“IgniteCheckedException:未配置请求的 DataRegion”
问题描述
我在 Linux + Kubernetes 上使用 Apache Ignite 2.7.5 for Net。我在一个拥有几个本地缓存的节点中定义了一个数据区域“rates”。节点启动成功。但是,集群上的所有其他节点都失败并出现以下错误:
IgniteCheckedException: Requested DataRegion is not configured: rates
但为什么?数据区域仅在单个节点上使用,并且该节点上所有缓存的缓存模式都设置为 CacheMode.Local。所有其他节点根本不使用数据存储。
是否可以在不在集群中的所有其他节点上声明相同数据区域的情况下解决此问题?
感谢您的关注。
解决方案
A data region has to be defined for every server node explicitly. There are two reasons why regions are not configured globally:
You’d like to have a subset of the nodes to store data that will belong to a region.
A region of the same name can be given different RAM volume on different server nodes. This way you control memory allocation granularly - per node.
Thus, for your case, just add “rates” region configuration to configurations of every server node.
推荐阅读
- javascript - 在 html 中读取 JSON
- reactjs - 如果 React Native 中没有数据,如何检查平面列表
- mysql - 我使用 MYSQL 中的哪种数据类型仅在数据表中存储数字 1 到 60?
- ios - UICollectionView Horizontal Scroll 左右滑动单元格的位置变化?
- angular - 如何打开组件视图然后从 html 代码中删除按钮标签
- jquery-ui - 下拉箭头的大小比平常小
- carousel - 显示 bulma carousel 中的所有图像
- typescript - 如何实现带剩余参数的接口?
- python - 如何在 Python OpenCV 中检测文本文档图像中的段落是否存在不一致的文本结构
- javascript - 对象数组 - 按顺序返回对象并返回平均排名