flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-8344) Add support for HA to RestClusterClient
Date Thu, 25 Jan 2018 09:21:01 GMT

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

ASF GitHub Bot commented on FLINK-8344:
---------------------------------------

Github user tillrohrmann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5312#discussion_r163778106
  
    --- Diff: flink-core/src/main/java/org/apache/flink/configuration/RestOptions.java ---
    @@ -41,4 +41,34 @@
     	public static final ConfigOption<Integer> REST_PORT =
     		key("rest.port")
     			.defaultValue(9067);
    +
    +	/**
    +	 * The time in ms to wait for the leader address, e.g., Dispatcher or WebMonitorEndpoint.
    +	 */
    +	public static final ConfigOption<Integer> AWAIT_LEADER_TIMEOUT =
    +		key("rest.await-leader-timeout")
    +			.defaultValue(30_000);
    +
    +	/**
    +	 * The number of attempts to retry a retryable operation.
    +	 * @see #RETRY_DELAY
    +	 */
    +	public static final ConfigOption<Integer> RETRY_MAX_ATTEMPTS =
    +		key("rest.retry.max-attempts")
    +			.defaultValue(20);
    +
    +	/**
    +	 * The time in ms to wait between retries.
    +	 * @see #RETRY_MAX_ATTEMPTS
    +	 */
    +	public static final ConfigOption<Integer> RETRY_DELAY =
    +		key("rest.retry.delay")
    +			.defaultValue(3_000);
    +
    +	/**
    +	 * The maximum time in ms to establish a TCP connection.
    +	 */
    +	public static final ConfigOption<Integer> CONNECTION_TIMEOUT =
    +		key("rest.connection-timeout")
    +			.defaultValue(15_000);
    --- End diff --
    
    please add a description via `withDescription` to these options.


> Add support for HA to RestClusterClient
> ---------------------------------------
>
>                 Key: FLINK-8344
>                 URL: https://issues.apache.org/jira/browse/FLINK-8344
>             Project: Flink
>          Issue Type: Improvement
>          Components: Client
>    Affects Versions: 1.5.0
>            Reporter: Till Rohrmann
>            Assignee: Gary Yao
>            Priority: Major
>              Labels: flip-6
>             Fix For: 1.5.0
>
>
> The {{RestClusterClient}} must be able to deal with changing JobMasters in case of HA.
We have to add functionality to reconnect to a newly elected leader in case of HA.



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

Mime
View raw message