akka.actor.deployment {
/myRouter {
router = consistent-hashing-group
nr-of-instances = 10000
routees.paths = ["/user/worker"]
cluster {
max-nr-of-instances-per-node = 1
enabled = on
allow-local-routees = off
use-role = recipient
}
}
}
If I start with for example 3 worker nodes "A" "B" "C" the consistent-hashing-group algorithm works as expected:
If a worker on node "B" recievies a message with a consistentHashKey = "123" this message is always send to "B"
But if I add a Node D from now on the message consistentHashKey = "123" is send to D.
Is this the expected behaviour?
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
thanks. I would like to ensure that when new Nodes are added they do not take their share of objects from all the other cache machines.
I guess I would need to implement my own caching algo for this to work.
yes thanks. The persistence is not that important since I will not have state that needs to be recreated or saved.
I am programming a complex cache which can rebuild its state from a sql db.