ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladislav Pyatkov <vldpyat...@gmail.com>
Subject Re: CacheConfiguration. AffinityFunction or node filter
Date Mon, 28 Nov 2016 09:28:06 GMT
Hi Alisher,

Of course, you should use the filter assembly (CacheConfiguration #
setNodeFilter), it provides an easy way to deploy a cache on a particular
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 <alimovalisher@gmail.com>

> 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
> alimovalisher@gmail.com

Vladislav Pyatkov

View raw message