Have found that it could be solved with node filters and attributes:

mark server with special custom attribute:
new IgniteConfiguration().setUserAttributes(Collections.singletonMap("role",
"hasRegion"))

specify node filter for the cache, which selects only servers with custom
attribute mentioned above:
new CacheConfiguration<>().setNodeFilter((IgnitePredicate<ClusterNode>)
clusterNode ->
                   
clusterNode.attributes().get("role").equals("hasRegion2"));

Is it proper way to solve this problem?



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to