Re: Ignite2.0 Affinity Key Distribution

2017-07-20 Thread vkulichenko
Ajay, To get better distribution you should have more partitions. Ideally, number of partitions should be at least order of magnitude bigger than number of nodes. I also recommend to use power of 2 as number of partitions (128, 256, 512, ...). Default value is 1024 and it works fine in majority o

Re: Ignite2.0 Affinity Key Distribution

2017-07-20 Thread mcherkasov
I don't about recommendations about this, you can use default value, which works well for a lot of users. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite2-0-Affinity-Key-Distribution-tp15123p15191.html Sent from the Apache Ignite Users mailing list archive

Re: Ignite2.0 Affinity Key Distribution

2017-07-20 Thread Ajay
Hi, How much size(threshold limit) recommended for a partition. Thanks, Ajay. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite2-0-Affinity-Key-Distribution-tp15123p15178.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Ignite2.0 Affinity Key Distribution

2017-07-20 Thread mcherkasov
>I configured 10 partitions, when i started the cluster with two nodes i saw 8 partitions in one server and two partitions in other server, can we make partitions equally? Play a little bit with partition number, try to set it to 128 or 256. >If not then 8 partitions servers having more load comp

Re: Ignite2.0 Affinity Key Distribution

2017-07-20 Thread Ajay
Hi, I configured 10 partitions, when i started the cluster with two nodes i saw 8 partitions in one server and two partitions in other server, can we make partitions equally?If not then 8 partitions servers having more load compare to other right? Thanks, Ajay. -- View this message in context:

Re: Ignite2.0 Affinity Key Distribution

2017-07-19 Thread mcherkasov
Hi Ajay, you question isn't fully correct,in both questions we should talk about affinity key, if you don't define affinity key, normal key is affinity key. for simplicity I can say yes: all key/object pairs will be distributed equally, at least for big amount of data with good key's hashcode. s

Re: Ignite2.0 Affinity Key Distribution

2017-07-19 Thread Andrey Mashenkov
Hi, Keys are distributed among partitions according to affinity function. Partitions are distributed among nodes according to affinity function. This chain "key->partition->node" is designed to simplify data exchange between nodes on topology changing and due to performance reasons. RendezvousAff

Ignite2.0 Affinity Key Distribution

2017-07-19 Thread Ajay
Hi, I want to know scenarios, 1)I have 10 affinity keys like 1-10 suppose when i load this keys between two servers(2 nodes) it will equally distribute or randomly distribute? 2)I have 10 normal keys like 1-10 suppose when i load this keys between two servers(2 nodes) it will equally distribute o