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

vinoyang commented on FLINK-11081:
----------------------------------

[~walterddr]  Thank you for recognizing the value of this issue. In fact, its 
implementation emulates the traditional way Flink supports port ranges, such as 
"taskmanager.rpc.port". It allows to specify:
 * Single port (eg 8081, 0 means randomly picked by jm)
 * The port list (12345, 1234) will be selected in order in this case.
 * Port range (12345-12346), in this case will also be selected in order

The specific implementation verifies the validity of the port and detects 
conflict exception.

> Support binding port range for REST server
> ------------------------------------------
>
>                 Key: FLINK-11081
>                 URL: https://issues.apache.org/jira/browse/FLINK-11081
>             Project: Flink
>          Issue Type: Improvement
>          Components: REST
>    Affects Versions: 1.7.0, 1.8.0
>            Reporter: Till Rohrmann
>            Assignee: vinoyang
>            Priority: Major
>              Labels: pull-request-available
>
> Currently the {{RestServerEndpoint}} binds to the port specified by 
> {{RestOptions#PORT}}. {{PORT}} is of type integer. Sometimes, it would be 
> useful to being able to specify not only a single port but a port range to 
> pick a port from. Therefore, I propose to add similar to 
> {{RestOptions#BIND_ADDRESS}} another option {{RestOptions#BIND_PORT}} which 
> allows to specify a port range for the {{RestServerEndpoint}} to pick a port 
> from. {{RestOptions#PORT}} would then only be used by the client to connect 
> to the started {{RestServerEndpoint}}.



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

Reply via email to