Esempio n. 1
0
 def __init__(self, checkpoint_root, active_executors=[]):
   self._active_executors = active_executors
   self._kills = set()
   self._losses = set()
   self._gcs = set()
   ThermosGCExecutor.__init__(self, checkpoint_root, clock=ThreadedClock(time.time()),
       executor_detector=lambda: list)
Esempio n. 2
0
 def __init__(self, checkpoint_root, active_executors=[]):
     self._active_executors = active_executors
     self._kills = set()
     self._losses = set()
     self._gcs = set()
     ThermosGCExecutor.__init__(self,
                                checkpoint_root,
                                clock=ThreadedClock(time.time()),
                                executor_detector=lambda: list)
Esempio n. 3
0
  def main():
    # Create executor stub
    thermos_gc_executor = ThermosGCExecutor(checkpoint_root=TaskPath.DEFAULT_CHECKPOINT_ROOT)
    thermos_gc_executor.start()

    # Start metrics collection
    metric_writer = DiskMetricWriter(thermos_gc_executor.metrics, ExecutorDetector.VARS_PATH)
    metric_writer.start()

    # Create driver stub
    driver = mesos.MesosExecutorDriver(thermos_gc_executor)

    # Start GC executor
    driver.run()

    log.info('MesosExecutorDriver.run() has finished.')
    def main():
        # Create executor stub
        thermos_gc_executor = ThermosGCExecutor(
            checkpoint_root=TaskPath.DEFAULT_CHECKPOINT_ROOT)
        thermos_gc_executor.start()

        # Start metrics collection
        metric_writer = DiskMetricWriter(thermos_gc_executor.metrics,
                                         ExecutorDetector.VARS_PATH)
        metric_writer.start()

        # Create driver stub
        driver = mesos.MesosExecutorDriver(thermos_gc_executor)

        # Start GC executor
        driver.run()

        log.info('MesosExecutorDriver.run() has finished.')