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

Port allocation seems to fail in a Docker Swarm without port binding #45

Closed
claustres opened this issue Jan 9, 2020 · 2 comments
Closed
Labels

Comments

@claustres
Copy link
Member

claustres commented Jan 9, 2020

Steps to reproduce

Deploy an application in a docker swarm cluster without port binding.

Expected behavior

Port allocation should work.

Actual behavior

It appears the application hangs during port allocation in the portfinder module. The app tries to find free port for a long time because thousands of ports are checked. Adding a port binding makes the app work as expected, port allocation stops after a couple of tries (as expected because we have a couple of services too). It appears that a new host name is added to the host names list in this case.

This is for an application providing services to another one. For the consumer application it works without port binding.

System configuration

Module versions (especially the part that's not working): 0.7

NodeJS version: 8.16

Operating System: Docker

@claustres
Copy link
Member Author

Although the port binding fixes the problem with an app consuming services and an app producing services it breaks again when there is an additional app consuming services of both others apps.

@claustres
Copy link
Member Author

Closing of #48 might have fixed or improved this issue, to be checked.

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

No branches or pull requests

1 participant