首页 > 解决方案 > 启动时出现“IgniteCheckedException:未配置请求的 DataRegion”

问题描述

我在 Linux + Kubernetes 上使用 Apache Ignite 2.7.5 for Net。我在一个拥有几个本地缓存的节点中定义了一个数据区域“rates”。节点启动成功。但是,集群上的所有其他节点都失败并出现以下错误:

IgniteCheckedException: Requested DataRegion is not configured: rates

但为什么?数据区域仅在单个节点上使用,并且该节点上所有缓存的缓存模式都设置为 CacheMode.Local。所有其他节点根本不使用数据存储。

是否可以在不在集群中的所有其他节点上声明相同数据区域的情况下解决此问题?

感谢您的关注。

标签: ignite

解决方案


A data region has to be defined for every server node explicitly. There are two reasons why regions are not configured globally:

  1. You’d like to have a subset of the nodes to store data that will belong to a region.

  2. 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.


推荐阅读