Hi Alisher, Of course, you should use the filter assembly (CacheConfiguration # setNodeFilter), it provides an easy way to deploy a cache on a particular node. Affinity function takes care of the balance of these sections between nodes. Implementation of the functions may not be so easy.
On Mon, Nov 28, 2016 at 10:04 AM, Alisher Alimov <[email protected]> wrote: > Hello! > > I have a cluster and want to store cache (primary and backups) on > concretes nodes by filter. I can do it by providing AffinityFunction in > org.apache.ignite.configuration.CacheConfiguration#setAffinity or > IgnitePredicate in > org.apache.ignite.configuration.CacheConfiguration#setNodeFilter. > Does they work the same way or what is the best practise? > > With best regards > Alisher Alimov > [email protected] > > > > > -- Vladislav Pyatkov
