use of edu.iu.dsc.tws.rsched.schedulers.mesos.MesosVolatileVolume in project twister2 by DSC-SPIDAL.
the class MesosMPIWorkerStarter method startWorker.
public static void startWorker(IWorkerController workerController, IPersistentVolume pv) {
JobAPI.Job job = JobUtils.readJobFile("twister2-job/" + jobName + ".job");
MesosVolatileVolume volatileVolume = null;
// TODO method SchedulerContext.volatileDiskRequested deleted
// volatileVolume needs to be checked from job object
// if (SchedulerContext.volatileDiskRequested(config)) {
// volatileVolume =
// new MesosVolatileVolume(SchedulerContext.jobName(config), workerID);
// }
// lets create the resource plan
// Map<Integer, JobMasterAPI.WorkerInfo> processNames =
// MPIWorker.createResourcePlan(config, MPI.COMM_WORLD, null);
// now create the resource plan
// AllocatedResources resourcePlan = MPIWorker.addContainers(config, processNames);
// AllocatedResources resourcePlan = MesosWorkerUtils.createAllocatedResources("mesos",
// workerID, job);
// resourcePlan = new AllocatedResources(SchedulerContext.clusterType(config), workerID);
IWorker worker = JobUtils.initializeIWorker(job);
worker.execute(config, job, workerController, pv, volatileVolume);
}
Aggregations