Hi,
I've created an EchoActor that seems to work 100% when I have a receiver
node and a sender node in the cluster.
However, when I have 2 senders in the cluster, it seems that it can only
receive from one of them, and it changes every second from one to the
other, the disconnected one receives DeadLetters.
This is my config.
/ClusterAwareActor {
router = random-group
routees.paths = ["/user/EchoGroup"]
cluster {
enabled = on
allow-local-routees = off
}
}
/EchoGroup {
router = random-pool
nr-of-instances = 1
pool-dispatcher {
executor = "fork-join-executor"
fork-join-executor {
parallelism-min = 20
parallelism-max = 20
}
}
}
The senders instantiate a ClusterAwareActor and the receiver instantiates
an EchoGroup router which in turn makes all those actor instances available
under the /EchoGroup namespace.
Now, as I mentioned before, this works no problem with 1 sender and 1
receiver.
When I get 2 senders I start seeing deadletters.
2017-03-07T16:49:58.613 [cts-plugins-akka.actor.default-dispatcher-19] INFO
akka.actor.EmptyLocalActorRef:83 - Message [java.lang.String] from Actor[
akka.tcp://cts-plugins@10.96.233.86:2551/deadLetters] to
Actor[akka://cts-plugins/user/EchoGroup] was not delivered. [31] dead
letters encountered. This logging can be turned off or adjusted with
configuration settings 'akka.log-dead-letters' and
'akka.log-dead-letters-during-shutdown'.
And I see this intermittently on each of the senders, it looks as if the
receiver was constantly switching receiving streams., taking some messages
of sender 1, then some messages of sender 2, then back to sender 1
Also, the fact that the error is provided by EmptyLocalActorRef makes me
wonder if its trying to hit a local actor, while it is explicitly
configured to disallow local routees.
I am a bit confused because I thought I had this tested, but I might have
changed something.
Thanks
Arkaitz
--
>> 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+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.