Hi,

I am using Ignite 2.4

In the documentation of Node Filter : 
https://apacheignite.readme.io/docs/service-grid#section-node-filter-based-deployment
There is following :
“This approach is based on a filtering predicate that gets called on every node 
at the time Ignite Service engine determines a set of possible candidates for 
the Ignite Service deployment.”

From my testing I see that node predicate gets called on the node that detects 
topology change but it runs only locally even for remote cluster node.
Is this means that when I implement predicate to run the check remotely on the 
remote node by myself ? Or I am missing something.
Is the approach of using for example cluster closure for this is good approach 
for this purpose ? Or Ignite will run predicate on remote node by itself which 
doesn’t actually what happens in my testing ?
For example here my predicate :
    public boolean apply(ClusterNode clusterNode) {
return ignite.compute(ignite.cluster()
               .forNode(clusterNode))
               .apply(new MyPredicateClosure(), args);
}

Thank You,
Vladik

Reply via email to