apache ignite - 如何将缓存部署到某个特定的集群组

apache ignite - How to deploy cache to some certain cluster group

对于apache ignite,我可以将缓存部署到某个特定的集群组吗? 如果可以,我应该怎么做?

您可以使用CacheConfiguration.setNodeFilter(IgnitePredicate<ClusterNode> nodeFilter) 方法为缓存配置定义节点过滤器。

如果 ClusterNode 实例通过了由 IgnitePredicate<ClusterNode> 表示的过滤器,则缓存将在节点上启动。您可以按节点的属性(静态定义)或任何其他节点属性过滤节点。