Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Akka.Remote running in docker with different local and external ports #3357

Closed
daninden opened this issue Mar 12, 2018 · 5 comments
Closed

Comments

@daninden
Copy link

daninden commented Mar 12, 2018

I'm trying to build an Akka.NET cluster using Akka.NET 1.3.5 on an AWS ECS instance (docker/dotnetcore) with the dotnetty transport.
The problem I'm facing is that the Remoting port used on the inside of the ECS instance is different from the outside port (Docker port mapping).

It seems that for Akka there is a configuration option for this scenario (https://doc.akka.io/docs/akka/2.5/remoting.html#remote-configuration-nat) using bind-port and bind-hostname.
For the bind-hostname problem I can use the 'public-hostname' as the outward facing IP address, and bind on the 'hostname' adres.
For the port number there is no such option.

I've taken a a look at the sources, and I think it can be fixed in the DotNettyTransport.cs class in the Listen function, by binding on the port, but returning the public-port (new config option) in the address.

@daninden
Copy link
Author

I created a PR #3358

@Aaronontheweb
Copy link
Member

Makes sense to me @daninden - I'll review your PR and see if we can get this merged in for 1.3.6.

@Aaronontheweb
Copy link
Member

Closed via #3390

@daninden
Copy link
Author

Great!, now we don't have to run our custom build anymore :)

@Aaronontheweb
Copy link
Member

You can see the new public-port setting for Akka.Remote on our newly added configurations page here: http://getakka.net/articles/configuration/akka.remote.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants