Well, I was hoping you wouldn't respond with that. :/

I read that Akka remoting is a peer2peer framework.
Nevertheless we use it partly as client-server. Probably also because the 
requirements were not absolutely clear in the beginning of software design.

Also that doesn't explain what exactly is happening.
The symptom for sure is that when host1 does a subsequent actorSelection 
against an actor in host1, host1 for some reason tries to make an outbound 
connection to host1, whereas this doesn't seem to happen at the initial 
actorSelection.

I've also found this thread 
here: https://groups.google.com/forum/#!topic/akka-user/GyfUUENeS0o
Which seems to be a similar setup as ours.
Where the solution is that one ActorSystem per remote is created and 
re-started on node termination. Not a perfect solution, by far.

So, yes. Akka IO or HTTP is probably better suited for this particular use 
case.

However, I'm still wondering if there is a chance to get along with Akka 
remoting.


Manfred


Am Freitag, 2. Juni 2017 17:44:25 UTC+2 schrieb Patrik Nordwall:
>
>
> http://doc.akka.io/docs/akka/current/scala/general/remoting.html#peer-to-peer-vs-client-server
>
> Sorry for short answer
>
> /Patrik
> fre 2 juni 2017 kl. 09:35 skrev Manfred Bergmann <manf...@gmail.com 
> <javascript:>>:
>
>> Hello.
>>
>> I need some advice.
>>
>> The following situation (Akka 2.5.2):
>>
>> I have an ActorSystem on one host (host0) and another ActorSystem on 
>> another host (host1).
>>
>> host0 is assumed to always be online and available.
>> host0 does not know the ip address or hostname of host1 (DNS).
>> host0 cannot make connection to host1 due to firewall restrictions but it 
>> uses the passive mode functionality.
>>
>> host1 knows the hostname of host0.
>> host1 connects to a specific actor on host0 via actorSelection.
>>
>> host0 watches the connecting actor of host1 and vise versa.
>> Initially this works all well.
>>
>> But after host1 goes down (network cable plugged or whatever) and wants 
>> to reconnect to host0 via actorSelection it's not possible.
>> host1 logs: "Error resolving remote Actor: Actor not found for: 
>> ActorSelection[Anchor(akka.tcp://system@host0:port/), Path(somepath)]
>> host0 logs: "ReliableDeliverySupervisor - Assiciation with remote system 
>> [akka.tcp://system@host1:port] has failed, address is now gated for [5000] 
>> ms. Caused by: [No response from remote for outbound association. Associate 
>> timed out after [15000 ms]]
>>
>> host1 retries every so often. from the second attempt on the error 
>> message on host0 is:
>> "ReliableDeliverySupervisor - Assiciation with remote system 
>> [akka.tcp://system@host1:port] has failed, address is now gated for [5000] 
>> ms. Caused by: [host1: Name or service not known]
>>
>> host1 can only reconnect, if host0 is re-started.
>>
>> I'd like to understand what happens here.
>> Why is host1 unable to reconnect. Or actually, why does host0 not 'allow' 
>> the reconnection.
>> Now, I've read about the Lifecycle and Failure recovery model. Can it be 
>> that the link to host1 is quarantined on host0?
>> Why the error message "Name or service not known", if previously the 
>> connection worked?
>>
>>
>> Regards,
>> Manfred
>>
>> -- 
>> >>>>>>>>>> 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 <javascript:>.
>> To post to this group, send email to akka...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
>>>>>>>>>>      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.

Reply via email to