[ 
https://issues.apache.org/jira/browse/SDAP-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16595167#comment-16595167
 ] 

ASF GitHub Bot commented on SDAP-133:
-------------------------------------

fgreg opened a new pull request #11: SDAP-133 Allow image to start with random 
port
URL: https://github.com/apache/incubator-sdap-ningester/pull/11
 
 
   Related to https://github.com/apache/incubator-sdap-ningesterpy/pull/9
   
   This PR adds an option to the docker image to pick a random port for 
internal communication during application startup.
   
   This docker container contains 2 processes that communicate via a port. The 
ningesterpy process listens on a port (default 5000) for communication from the 
java process.
   
   A problem was noticed when deploying this to AWS Batch. Namely that AWS 
Batch runs containers in `network=host` mode instead of using a bridge network. 
This causes port conflicts when AWS tries to run multiple instances of the 
ningester container on the same host (because every ningesterpy instance is 
trying to bind to port 5000 of the host).
   
   The solution in this PR uses the feature added 
https://github.com/apache/incubator-sdap-ningesterpy/pull/9 that allows 
ningesterpy to select a random available port to bind to during startup so that 
multiple instances of the ningester container can run on the same host at the 
same time when using host networking.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Allow image to start with random port
> -------------------------------------
>
>                 Key: SDAP-133
>                 URL: https://issues.apache.org/jira/browse/SDAP-133
>             Project: Apache Science Data Analytics Platform
>          Issue Type: Sub-task
>          Components: nexus
>            Reporter: Frank Greguska
>            Assignee: Frank Greguska
>            Priority: Major
>
> Need to update Docker image so that a random port can be used for ningesterpy.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to