zentol commented on a change in pull request #7263: [FLINK-11081] Support
binding port range for REST server
URL: https://github.com/apache/flink/pull/7263#discussion_r255053575
##########
File path:
flink-core/src/main/java/org/apache/flink/configuration/RestOptions.java
##########
@@ -37,6 +37,18 @@
.withDeprecatedKeys(WebOptions.ADDRESS.key(),
ConfigConstants.DEFAULT_JOB_MANAGER_WEB_FRONTEND_ADDRESS.key())
.withDescription("The address that the server binds
itself.");
+ /**
+ * The port range that the server could bind itself to.
+ */
+ public static final ConfigOption<String> BIND_PORT =
+ key("rest.bind-port")
+ .defaultValue("8081")
+ .withDeprecatedKeys("rest.port", WebOptions.PORT.key(),
ConfigConstants.JOB_MANAGER_WEB_PORT_KEY)
Review comment:
With fallback keys being a thing now we could use that for `rest.port`. It's
convenient for local setups to being able to set one port and have the
server/client work with that.
----------------------------------------------------------------
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]
With regards,
Apache Git Services