suez1224 commented on a change in pull request #7356: [FLINK-10868][flink-yarn] 
Enforce maximum TMs failure rate in ResourceManagers
URL: https://github.com/apache/flink/pull/7356#discussion_r252024051
 
 

 ##########
 File path: 
flink-mesos/src/main/java/org/apache/flink/mesos/configuration/MesosOptions.java
 ##########
 @@ -99,6 +99,25 @@
                        .withDescription("The config parameter defining the 
Mesos artifact server port to use. Setting the port to" +
                                " 0 will let the OS choose an available port.");
 
+       /**
+        * The maximum number of failed Mesos worker within an interval before 
entirely stopping
+        * the Mesos session / job on Mesos.
+        * By default, the value is -1
+        */
+       public static final ConfigOption<Integer> 
MAX_FAILED_WORKERS_PER_INTERVAL =
+               key("mesos.maximum-failed-workers-per-interval")
+                       .defaultValue(-1)
+                       .withDescription("Maximum number of workers the system 
is going to reallocate in case of a failure in an interval.");
+
+       /**
+        * The interval for measuring failure rate of containers in second unit.
+        * By default, the value is 5 minutes.
+        **/
+       public static final ConfigOption<Integer> WORKERS_FAILURE_RATE_INTERVAL 
=
+               key("mesos.workers-failure-rate-interval")
+                       .defaultValue(300)
+                       .withDeprecatedKeys("The interval for measuring failure 
rate of workers");
 
 Review comment:
   withDescription here as well.

----------------------------------------------------------------
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

Reply via email to