Results using artery
Producer Consumer Result
-------------------------
IntelliJ Docker ok
Docker IntelliJ ok
IntelliJ IntelliJ ok
Docker Docker fail (no message reaches the consumer, and the producer eventually prints handshake timeouts after 20 seconds/default timeout in akka-remote-artery - the same error message I get when not running any Consumer at all)
Results using netty.tcpProducer Consumer Result{ "akka": { "actor": { "provider": "remote" }, "remote": { "artery": { "bind": { "hostname": "0.0.0.0", "port": 12345 }, "canonical": { "hostname": "192.168.99.100", "port": 12345 }, "enabled": "on" } } }}{ "akka": { "actor": { "provider": "remote" }, "remote": { "artery": { "bind": { "hostname": "0.0.0.0", "port": 12346 }, "canonical": { "hostname": "192.168.99.100", "port": 12346 }, "enabled": "on" } } }}docker run --shm-size 1024M -p 12345:12345 -p 12345:12345/udp --rm akka-remote-eval-consumer:0.1.0-SNAPSHOT --transport tcp --host 192.168.99.100 --port 12345 --bind-host 0.0.0.0 --bind-port 12345
docker run --shm-size 1024M -p 11001:11001/udp -p 12346:12346/udp --rm akka-remote-eval-producer:0.1.0-SNAPST --transport artery --host 192.168.99.100 --port 12346 --bind-host 0.0.0.0 --bind-port 12346 --consumer-host 192.168.99.100 --consumer-port 12345
[ERROR] [11/09/2016 16:24:17.201] [producer-system-akka.remote.default-remote-dispatcher-6] [akka.remote.artery.Association(akka://producer-system)] Outbound message stream to [akka://consumer-system@192.168.99.100:12345] failed. Restarting it. Handshake with [akka://consumer-system@192.168.99.100:12345] did not complete within 20000 ms (akka.remote.artery.OutboundHandshake$HandshakeTimeoutException) after about 20 seconds, indicating what I assume is a timeout.
When I use netty.tcp it works just fine between the containers.What is also strange is that it works with artery when I move one of the applications outside of a docker container. BothWhen running each application outside docker (e.g. from within intelliJ during development) they can communicate with each other fine, but as soon as I try to make them talk to each other with artery from docker container to docker container, no messages get through to the consumerEach application can be configured (cmd line args) to communicate with either netty.tcp or artery.I've repeatedly gone over the configurations, code and startup arguments from scratch now so many times, and had colleagues look at it as well. We cannot figure out at all what could be wrong here :S.The following are the docker startup commands. The command line arguments you see here are used to generate the conf you see above.Consumer:docker run --shm-size 1024M -p 12345:12345 -p 12345:12345/udp --rm akka-remote-eval-consumer:0.1.0-SNAPSHOT --transport tcp --host 192.168.99.100 --port 12345 --bind-host 0.0.0.0 --bind-port 12345
Producer:docker run --shm-size 1024M -p 11001:11001/udp -p 12346:12346/udp --rm akka-remote-eval-producer:0.1.0-SNAPST --transport artery --host 192.168.99.100 --port 12346 --bind-host 0.0.0.0 --bind-port 12346 --consumer-host 192.168.99.100 --consumer-port 12345
Running this on a regular macbook pro with what I think are the latest updates, oracle jdk8, docker running with docker-machine.Using akka-actor and akka-remote 2.4.12Note: We are running an older docker version if that is of any importance: 1.10.2Any ideas of what I could be doing wrong?/ Johan
--
>>>>>>>>>> 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+unsubscribe@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
/Johan
Yes - i Did. Please see my original post for details. You will see that I use the udp parameter for my docker port forwarding. Also please note that I've tested artery successfully in docker as long as one of the applications is running outside docker. However the problem occurs only when both producer and consumer run in containers. See the test results table and error log in my previous message for more details.
/Johan
Ah, sorry, didn't notice it in the command line.Can you verify with some other tool that you can communicate using udp between the nodes? (using netcat for example)Set logs to debug to see if there is anything helpful in there.Additionally artery contains a "flight recorder" which you can enable using the setting akka.remote.artery.advanced.flight-recorder.enabled, it will write artery related events to a binary logfile, which you can then feed to akka.remote.artery.FlightRecorderDump in akka-remote to get human readable output, it may also contain some hints about what/why/how it is not working.--JohanAkka Team
On Wed, Nov 9, 2016 at 7:14 PM, <johan.kjolhed...@gmail.com> wrote:
Yes - i Did. Please see my original post for details. You will see that I use the udp parameter for my docker port forwarding. Also please note that I've tested artery successfully in docker as long as one of the applications is running outside docker. However the problem occurs only when both producer and consumer run in containers. See the test results table and error log in my previous message for more details.
/Johan
--
>>>>>>>>>> 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.
looks related
--
Cheers,
√
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscribe@googlegroups.com.
Ah, sorry, didn't notice it in the command line.Can you verify with some other tool that you can communicate using udp between the nodes? (using netcat for example)Set logs to debug to see if there is anything helpful in there.Additionally artery contains a "flight recorder" which you can enable using the setting akka.remote.artery.advanced.flight-recorder.enabled, it will write artery related events to a binary logfile, which you can then feed to akka.remote.artery.FlightRecorderDump in akka-remote to get human readable output, it may also contain some hints about what/why/how it is not working.--JohanAkka Team
On Wed, Nov 9, 2016 at 7:14 PM, <johan.kjolhed...@gmail.com> wrote:
Yes - i Did. Please see my original post for details. You will see that I use the udp parameter for my docker port forwarding. Also please note that I've tested artery successfully in docker as long as one of the applications is running outside docker. However the problem occurs only when both producer and consumer run in containers. See the test results table and error log in my previous message for more details.
/Johan
--
>>>>>>>>>> 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.
Ah, sorry, didn't notice it in the command line.Can you verify with some other tool that you can communicate using udp between the nodes? (using netcat for example)Set logs to debug to see if there is anything helpful in there.Additionally artery contains a "flight recorder" which you can enable using the setting akka.remote.artery.advanced.flight-recorder.enabled, it will write artery related events to a binary logfile, which you can then feed to akka.remote.artery.FlightRecorderDump in akka-remote to get human readable output, it may also contain some hints about what/why/how it is not working.--JohanAkka Team
On Wed, Nov 9, 2016 at 7:14 PM, <johan.kjolhed...@gmail.com> wrote:
Yes - i Did. Please see my original post for details. You will see that I use the udp parameter for my docker port forwarding. Also please note that I've tested artery successfully in docker as long as one of the applications is running outside docker. However the problem occurs only when both producer and consumer run in containers. See the test results table and error log in my previous message for more details.
/Johan
--
>>>>>>>>>> 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.
[DEBUG] [11/09/2016 20:29:02.937] [aeron-client-conductor] [akka.remote.artery.ArteryTransport(akka://consumer-system)] onAvailableImage from 172.17.0.1:52515 session 2110811048
[DEBUG] [11/09/2016 20:29:13.417] [aeron-client-conductor] [akka.remote.artery.ArteryTransport(akka://consumer-system)] onUnavailableImage from 172.17.0.1:52515 session 2110811048
Ah, sorry, didn't notice it in the command line.Can you verify with some other tool that you can communicate using udp between the nodes? (using netcat for example)Set logs to debug to see if there is anything helpful in there.Additionally artery contains a "flight recorder" which you can enable using the setting akka.remote.artery.advanced.flight-recorder.enabled, it will write artery related events to a binary logfile, which you can then feed to akka.remote.artery.FlightRecorderDump in akka-remote to get human readable output, it may also contain some hints about what/why/how it is not working.--JohanAkka Team
On Wed, Nov 9, 2016 at 7:14 PM, <johan.kjolhed...@gmail.com> wrote:
Yes - i Did. Please see my original post for details. You will see that I use the udp parameter for my docker port forwarding. Also please note that I've tested artery successfully in docker as long as one of the applications is running outside docker. However the problem occurs only when both producer and consumer run in containers. See the test results table and error log in my previous message for more details.
/Johan
--
>>>>>>>>>> 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.
Ah, sorry, didn't notice it in the command line.Can you verify with some other tool that you can communicate using udp between the nodes? (using netcat for example)Set logs to debug to see if there is anything helpful in there.Additionally artery contains a "flight recorder" which you can enable using the setting akka.remote.artery.advanced.flight-recorder.enabled, it will write artery related events to a binary logfile, which you can then feed to akka.remote.artery.FlightRecorderDump in akka-remote to get human readable output, it may also contain some hints about what/why/how it is not working.--JohanAkka Team
On Wed, Nov 9, 2016 at 7:14 PM, <johan.kjolhed...@gmail.com> wrote:
Yes - i Did. Please see my original post for details. You will see that I use the udp parameter for my docker port forwarding. Also please note that I've tested artery successfully in docker as long as one of the applications is running outside docker. However the problem occurs only when both producer and consumer run in containers. See the test results table and error log in my previous message for more details.
/Johan
--
>>>>>>>>>> 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.
Ah, sorry, didn't notice it in the command line.Can you verify with some other tool that you can communicate using udp between the nodes? (using netcat for example)Set logs to debug to see if there is anything helpful in there.Additionally artery contains a "flight recorder" which you can enable using the setting akka.remote.artery.advanced.flight-recorder.enabled, it will write artery related events to a binary logfile, which you can then feed to akka.remote.artery.FlightRecorderDump in akka-remote to get human readable output, it may also contain some hints about what/why/how it is not working.--JohanAkka Team
On Wed, Nov 9, 2016 at 7:14 PM, <johan.kjolhed...@gmail.com> wrote:
Yes - i Did. Please see my original post for details. You will see that I use the udp parameter for my docker port forwarding. Also please note that I've tested artery successfully in docker as long as one of the applications is running outside docker. However the problem occurs only when both producer and consumer run in containers. See the test results table and error log in my previous message for more details.
/Johan
--
>>>>>>>>>> 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.