Search in sources :

Example 1 with MesosVolatileVolume

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);
}
Also used : MesosVolatileVolume(edu.iu.dsc.tws.rsched.schedulers.mesos.MesosVolatileVolume) IWorker(edu.iu.dsc.tws.api.resource.IWorker) JobAPI(edu.iu.dsc.tws.proto.system.job.JobAPI)

Aggregations

IWorker (edu.iu.dsc.tws.api.resource.IWorker)1 JobAPI (edu.iu.dsc.tws.proto.system.job.JobAPI)1 MesosVolatileVolume (edu.iu.dsc.tws.rsched.schedulers.mesos.MesosVolatileVolume)1