public void serviceInit(Configuration conf) throws Exception { int expireIntvl = conf.getInt(YarnConfiguration.RM_NM_EXPIRY_INTERVAL_MS, YarnConfiguration.DEFAULT_RM_NM_EXPIRY_INTERVAL_MS); setExpireInterval(expireIntvl); setMonitorInterval(expireIntvl/3); super.serviceInit(conf); }
public void init(Configuration conf) { super.init(conf); int expireIntvl = conf.getInt(MRJobConfig.TASK_EXIT_TIMEOUT, MRJobConfig.TASK_EXIT_TIMEOUT_DEFAULT); int checkIntvl = conf.getInt( MRJobConfig.TASK_EXIT_TIMEOUT_CHECK_INTERVAL_MS, MRJobConfig.TASK_EXIT_TIMEOUT_CHECK_INTERVAL_MS_DEFAULT); setExpireInterval(expireIntvl); setMonitorInterval(checkIntvl); }
@Override protected void serviceStart() throws Exception { assert !stopped : "starting when already stopped"; resetTimer(); checkerThread = new Thread(new PingChecker()); checkerThread.setName("Ping Checker"); checkerThread.start(); super.serviceStart(); }
public synchronized void register(O ob) { register(ob, clock.getTime()); }
@Override public void taskExecutorHeartbeat(String taskId) { TonyTask task = session.getTask(taskId); if (task != null) { LOG.debug("[" + taskId + "] Received HB Ping !!"); hbMonitor.receivedPing(task); } else { LOG.warn("[" + taskId + "] Not registered for heartbeat monitoring !!"); } }
@Override protected void serviceStart() throws Exception { setMonitorInterval(hbInterval * 3); setExpireInterval(hbInterval * Math.max(3, maxConsecutiveHBMiss)); // Be at least == monitoring interval super.serviceStart(); } };
hbMonitor.start(); return true;
hbMonitor.register(task); killChiefWorkerIfTesting(taskId);
public void serviceInit(Configuration conf) throws Exception { int expireIntvl = conf.getInt( YarnConfiguration.RM_CONTAINER_ALLOC_EXPIRY_INTERVAL_MS, YarnConfiguration.DEFAULT_RM_CONTAINER_ALLOC_EXPIRY_INTERVAL_MS); setExpireInterval(expireIntvl); setMonitorInterval(expireIntvl/3); super.serviceInit(conf); }
@Override protected void serviceStart() throws Exception { assert !stopped : "starting when already stopped"; resetTimer(); checkerThread = new Thread(new PingChecker()); checkerThread.setName("Ping Checker"); checkerThread.start(); super.serviceStart(); }
public void init(Configuration conf) { super.init(conf); int expireIntvl = conf.getInt(MRJobConfig.TASK_EXIT_TIMEOUT, MRJobConfig.TASK_EXIT_TIMEOUT_DEFAULT); int checkIntvl = conf.getInt( MRJobConfig.TASK_EXIT_TIMEOUT_CHECK_INTERVAL_MS, MRJobConfig.TASK_EXIT_TIMEOUT_CHECK_INTERVAL_MS_DEFAULT); setExpireInterval(expireIntvl); setMonitorInterval(checkIntvl); }
public void serviceInit(Configuration conf) throws Exception { int expireIntvl = conf.getInt(YarnConfiguration.RM_NM_EXPIRY_INTERVAL_MS, YarnConfiguration.DEFAULT_RM_NM_EXPIRY_INTERVAL_MS); setExpireInterval(expireIntvl); setMonitorInterval(expireIntvl/3); super.serviceInit(conf); }
@Override protected void serviceStart() throws Exception { assert !stopped : "starting when already stopped"; resetTimer(); checkerThread = new Thread(new PingChecker()); checkerThread.setName("Ping Checker"); checkerThread.start(); super.serviceStart(); }
hbMonitor.init(tonyConf);
public void serviceInit(Configuration conf) throws Exception { int expireIntvl = conf.getInt( YarnConfiguration.RM_CONTAINER_ALLOC_EXPIRY_INTERVAL_MS, YarnConfiguration.DEFAULT_RM_CONTAINER_ALLOC_EXPIRY_INTERVAL_MS); setExpireInterval(expireIntvl); setMonitorInterval(expireIntvl/3); super.serviceInit(conf); }
public void serviceInit(Configuration conf) throws Exception { int expireIntvl = conf.getInt(YarnConfiguration.RM_NM_EXPIRY_INTERVAL_MS, YarnConfiguration.DEFAULT_RM_NM_EXPIRY_INTERVAL_MS); setExpireInterval(expireIntvl); setMonitorInterval(expireIntvl/3); super.serviceInit(conf); }
public void serviceInit(Configuration conf) throws Exception { super.serviceInit(conf); int expireIntvl = conf.getInt(YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS, YarnConfiguration.DEFAULT_RM_AM_EXPIRY_INTERVAL_MS); setExpireInterval(expireIntvl); setMonitorInterval(expireIntvl/3); }
public void serviceInit(Configuration conf) throws Exception { super.serviceInit(conf); int expireIntvl = conf.getInt(YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS, YarnConfiguration.DEFAULT_RM_AM_EXPIRY_INTERVAL_MS); setExpireInterval(expireIntvl); setMonitorInterval(expireIntvl/3); }
public void serviceInit(Configuration conf) throws Exception { super.serviceInit(conf); int expireIntvl = conf.getInt(YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS, YarnConfiguration.DEFAULT_RM_AM_EXPIRY_INTERVAL_MS); setExpireInterval(expireIntvl); setMonitorInterval(expireIntvl/3); }
public void serviceInit(Configuration conf) throws Exception { int expireIntvl = conf.getInt( YarnConfiguration.RM_CONTAINER_ALLOC_EXPIRY_INTERVAL_MS, YarnConfiguration.DEFAULT_RM_CONTAINER_ALLOC_EXPIRY_INTERVAL_MS); setExpireInterval(expireIntvl); setMonitorInterval(expireIntvl/3); super.serviceInit(conf); }