YARN-8710. Service AM should set a finite limit on NM container max retries. Contributed by Suma Shivaprasad

This commit is contained in:
Billie Rinaldi 2018-10-11 08:48:18 -07:00
parent e787d65a08
commit aeeb0389a5

View File

@ -34,12 +34,13 @@ public class YarnServiceConf {
// Retry settings for container failures
public static final String CONTAINER_RETRY_MAX = "yarn.service.container-failure.retry.max";
public static final int DEFAULT_CONTAINER_RETRY_MAX = -1;
public static final int DEFAULT_CONTAINER_RETRY_MAX = 10;
public static final String CONTAINER_RETRY_INTERVAL = "yarn.service.container-failure.retry-interval-ms";
public static final int DEFAULT_CONTAINER_RETRY_INTERVAL = 30000;
public static final String CONTAINER_FAILURES_VALIDITY_INTERVAL =
"yarn.service.container-failure.validity-interval-ms";
public static final long DEFAULT_CONTAINER_FAILURES_VALIDITY_INTERVAL = -1;
public static final long DEFAULT_CONTAINER_FAILURES_VALIDITY_INTERVAL =
600000;
public static final String AM_RESTART_MAX = "yarn.service.am-restart.max-attempts";
public static final int DEFAULT_AM_RESTART_MAX = 20;