You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Ravi <ra...@gmail.com> on 2016/01/22 10:53:13 UTC

Affinity Key??

what is affinity in practical terms. and affinity is predefined term or we
need to make affinity function?



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Affinity-Key-tp2669.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Affinity Key??

Posted by Artem Shutak <as...@gridgain.com>.
Hi, Ravi,

Please, refer to the Affinity documentation:
- https://apacheignite.readme.io/docs/affinity-collocation 
- https://apacheignite.readme.io/docs/cache-modes

Thanks,
Artem.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Affinity-Key-tp2669p2670.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Affinity Key??

Posted by Andrey Nestrogaev <a....@flexsoft.com>.
Hi!

You can gather more information about affinity after reading the javadoc for
classes
http://ignite.apache.org/releases/1.5.0-b1/javadoc/org/apache/ignite/cache/affinity/AffinityFunction.html
http://ignite.apache.org/releases/1.5.0-b1/javadoc/org/apache/ignite/cache/affinity/AffinityKeyMapped.html
http://ignite.apache.org/releases/1.5.0-b1/javadoc/org/apache/ignite/cache/affinity/AffinityKeyMapper.html





--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Affinity-Key-tp2669p2679.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Affinity Key??

Posted by vkulichenko <va...@gmail.com>.
Hi Ravi,


Ravi wrote
> what is affinity in practical terms. and affinity is predefined term or we
> need to make affinity function?

Affinity is a function that maps any cache key to a node where entry for
this key is stored. It's pluggable in Ignite, so you're free to create your
own function, but in 99.(9)% of use cases it's not needed and you can just
use the default one provided out of the box.

Please let us know if you have any specific follow up questions.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Affinity-Key-tp2669p2681.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.